
/* Standalone glue: keep the original 1920x1080 fixed-canvas layout, but avoid full-game boot hiding. */
body.daifugo-standalone-body {
  background: #000;
}

body.daifugo-standalone-body #gameViewportShell {
  visibility: visible !important;
}

body.daifugo-standalone-body #gameCanvasRoot > * {
  visibility: visible !important;
}

body.daifugo-standalone-body .daifugo-screen {
  display: block !important;
  visibility: visible !important;
}

body.daifugo-standalone-body .cc-title-menu {
  top: 540px;
  gap: 16px;
}

body.daifugo-standalone-body .cc-title-btn {
  min-height: 66px;
}

body.daifugo-standalone-body .cc-title-logo {
  top: 42px;
  width: 1720px;
  max-height: 560px;
}

body.daifugo-standalone-body .cc-title-subtext {
  top: 866px;
  width: 1380px;
  color: #fff1c8;
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 1.9rem;
  line-height: 1.5;
  font-weight: 850;
  letter-spacing: 0.025em;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 0 1px rgba(255, 241, 200, 0.72);
  -webkit-font-smoothing: subpixel-antialiased;
  text-rendering: geometricPrecision;
}

html.cc-desktop-layout body.daifugo-standalone-body .cc-language-select {
  right: 54px;
  bottom: 42px;
  gap: 10px;
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

html.cc-desktop-layout body.daifugo-standalone-body .cc-language-select select {
  width: 138px;
  min-width: 138px;
  max-width: 138px;
  min-height: 38px;
  height: 38px;
  padding: 0 10px;
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}

html.cc-desktop-layout body.daifugo-standalone-body .cc-language-select select option {
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  background: #071512;
  color: #f3ead0;
}

.cc-profile-panel {
  position: absolute;
  left: 64px;
  bottom: 214px;
  z-index: 6;
  display: grid;
  grid-template-columns: 132px 420px;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(222, 190, 112, 0.56);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(6, 17, 23, 0.9), rgba(3, 8, 16, 0.94));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.46);
}

.cc-profile-avatar-btn {
  width: 132px;
  height: 132px;
  padding: 0;
  border: 1px solid rgba(247, 206, 100, 0.78);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  overflow: hidden;
}

.cc-profile-avatar-preview {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.cc-profile-avatar-preview.empty {
  background:
    radial-gradient(circle at 50% 38%, rgba(247, 206, 100, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(11, 34, 47, 0.95), rgba(3, 8, 16, 0.98));
}

.cc-profile-fields {
  display: grid;
  gap: 11px;
}

.cc-profile-name-label {
  display: grid;
  gap: 6px;
  color: #f8e7ad;
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.cc-profile-name-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(222, 190, 112, 0.72);
  border-radius: 4px;
  background: rgba(2, 8, 14, 0.9);
  color: #fff1c8;
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.cc-profile-avatar-name {
  min-height: 26px;
  color: rgba(243, 234, 208, 0.88);
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cc-profile-btn {
  height: 46px;
  border: 1px solid rgba(222, 190, 112, 0.72);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(18, 50, 66, 0.96), rgba(5, 19, 30, 0.98));
  color: #fff1c8;
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.cc-profile-btn.primary {
  border-color: rgba(255, 206, 84, 0.96);
  box-shadow: 0 0 12px rgba(255, 170, 30, 0.24);
}

.cc-profile-avatar-modal {
  position: absolute;
  inset: 0;
  z-index: 3450;
  width: 1920px;
  height: 1080px;
}

.cc-profile-avatar-modal.hidden {
  display: none;
}

.cc-profile-avatar-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
}

.cc-profile-avatar-panel {
  position: absolute;
  inset: 70px 110px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid rgba(222, 190, 112, 0.56);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(8, 14, 30, 0.97), rgba(3, 8, 18, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
}

.cc-profile-avatar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cc-profile-avatar-title {
  color: #f8e7ad;
  font-family: 'Cinzel', 'Noto Sans JP', serif;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.cc-profile-default-avatar-toggle {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(222, 190, 112, 0.48);
  border-radius: 4px;
  background: rgba(2, 8, 14, 0.76);
  color: #fff1c8;
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.cc-profile-default-avatar-toggle input {
  width: 20px;
  height: 20px;
  accent-color: #d8b43a;
  cursor: pointer;
}

.cc-profile-avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
}

.cc-profile-avatar-slot {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 10px;
  min-height: 354px;
  min-width: 0;
  border: 1px solid rgba(222, 190, 112, 0.34);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: #f3ead0;
  cursor: pointer;
}

.cc-profile-avatar-slot.selected {
  border-color: rgba(72, 255, 165, 0.92);
  box-shadow: 0 0 18px rgba(72, 255, 165, 0.28);
}

.cc-profile-avatar-slot .card {
  transform: scale(0.72);
  transform-origin: top center;
  margin: 0;
}

.cc-profile-avatar-card-name {
  display: none;
  width: 100%;
  color: #fff1c8;
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 0.86rem;
  font-weight: 850;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-profile-avatar-empty {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  color: #f3ead0;
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

html.cc-desktop-layout body.daifugo-standalone-body .daifugo-help-panel {
  width: 920px;
  max-height: 920px;
}

html.cc-desktop-layout body.daifugo-standalone-body .daifugo-help-body {
  max-height: 820px;
}

body.daifugo-standalone-body .cc-title-btn {
  color: #fff1c8;
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.92),
    0 0 1px rgba(255, 241, 200, 0.72);
  -webkit-font-smoothing: subpixel-antialiased;
  text-rendering: geometricPrecision;
}

body.daifugo-standalone-body .cc-language-select,
body.daifugo-standalone-body .cc-language-select select,
body.daifugo-standalone-body .cc-language-select select option {
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}

.daifugo-mobile-only {
  display: none;
}

.cc-library-filter-btn,
.cc-library-filter-close {
  display: none;
}

/* Fallbacks when the material folder has not been copied yet. */
.daifugo-screen {
  background:
    radial-gradient(circle at 50% 48%, rgba(28, 112, 62, 0.65), rgba(8, 38, 26, 0.96) 64%),
    linear-gradient(180deg, #082416, #03130d) !important;
  background-image: url('material/table.png'), radial-gradient(circle at 50% 48%, rgba(28,112,62,.65), rgba(8,38,26,.96) 64%) !important;
  background-size: cover !important;
  background-position: center !important;
}

.card-image {
  background-color: #161616;
}

.card-image[style*="url('cards/"] {
  background-size: cover;
  background-position: center;
}

/* Let the original CSS control most layout. Only improve missing asset readability. */
.card-frame {
  background-color: rgba(20, 14, 10, 0.2);
}

.card-stats span {
  font-family: 'Cinzel', serif;
}

.cc-library-modal {
  position: absolute;
  inset: 0;
  z-index: 3400;
  width: 1920px;
  height: 1080px;
}

.cc-library-modal.hidden {
  display: none;
}

.cc-library-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(3px);
}

.cc-library-panel {
  position: absolute;
  inset: 46px 54px 46px 54px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid rgba(222, 190, 112, 0.5);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(8, 14, 30, 0.97), rgba(3, 8, 18, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
}

.cc-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(222, 190, 112, 0.24);
  padding-bottom: 14px;
}

.cc-library-title {
  color: #f1d484;
  font-family: 'Cinzel', 'Shippori Mincho', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cc-library-summary {
  margin-top: 4px;
  color: rgba(235, 229, 210, 0.84);
  font-size: 1rem;
}

.cc-library-close {
  min-width: 74px;
  min-height: 46px;
  border: 1px solid rgba(222, 190, 112, 0.62);
  border-radius: 8px;
  background: rgba(22, 27, 48, 0.95);
  color: #f5e8c2;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
}

.cc-library-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 190px 190px auto;
  gap: 12px;
  align-items: center;
}

.cc-library-search,
.cc-library-select {
  min-height: 42px;
  border: 1px solid rgba(222, 190, 112, 0.42);
  border-radius: 8px;
  background: rgba(5, 12, 24, 0.96);
  color: #f3e7c2;
  font: 700 0.96rem 'Cinzel', 'Shippori Mincho', serif;
  padding: 0 12px;
}

.cc-library-owned-filter {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(222, 190, 112, 0.34);
  border-radius: 8px;
  color: #f3e7c2;
  background: rgba(11, 24, 44, 0.78);
  font-weight: 700;
}

.cc-online-modal {
  position: absolute;
  inset: 0;
  z-index: 3450;
  width: 1920px;
  height: 1080px;
}

.cc-online-modal.hidden {
  display: none;
}

.cc-online-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.cc-online-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 620px;
  max-height: calc(100% - 32px);
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 22px 24px 24px;
  border: 1px solid rgba(222, 190, 112, 0.55);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 22, 22, 0.98), rgba(4, 9, 10, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62);
  color: #f5ebc8;
}

.cc-online-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(222, 190, 112, 0.25);
}

.cc-online-title {
  font-family: 'Cinzel', 'Shippori Mincho', serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f1d484;
}

.cc-online-close {
  width: 56px;
  height: 46px;
  border: 1px solid rgba(222, 190, 112, 0.58);
  border-radius: 8px;
  background: rgba(19, 29, 29, 0.94);
  color: #f8edca;
  font-size: 1.55rem;
  font-weight: 900;
  cursor: pointer;
}

.cc-online-body {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.cc-online-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(222, 190, 112, 0.24);
  border-radius: 8px;
  background: rgba(3, 15, 16, 0.62);
}

.cc-online-label {
  font-family: 'Cinzel', 'Shippori Mincho', serif;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(245, 235, 200, 0.9);
}

.cc-online-row {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 10px;
  align-items: center;
}

.cc-online-select,
.cc-online-input {
  min-height: 42px;
  width: 100%;
  border: 1px solid rgba(222, 190, 112, 0.46);
  border-radius: 8px;
  background: rgba(2, 9, 10, 0.94);
  color: #f5ebc8;
  font: 800 1rem 'Cinzel', 'Shippori Mincho', serif;
  padding: 0 14px;
  letter-spacing: 0.04em;
}

.cc-online-input {
  text-transform: uppercase;
}

.cc-online-btn {
  min-height: 44px;
  border: 1px solid rgba(222, 190, 112, 0.56);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(23, 38, 37, 0.98), rgba(4, 16, 16, 0.98));
  color: #fff2cb;
  font: 900 1rem 'Cinzel', 'Shippori Mincho', serif;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.cc-online-btn.primary {
  background: linear-gradient(180deg, rgba(46, 74, 35, 0.98), rgba(15, 40, 23, 0.98));
}

.cc-online-btn.hidden {
  display: none;
}

.cc-online-btn:hover,
.cc-online-close:hover {
  filter: brightness(1.12);
}

.cc-online-waiting {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 14px;
  border: 1px solid rgba(222, 190, 112, 0.34);
  border-radius: 8px;
  background: rgba(16, 31, 22, 0.78);
}

.cc-online-waiting.hidden {
  display: none;
}

.cc-online-room-label {
  font: 800 0.9rem 'Cinzel', 'Shippori Mincho', serif;
  letter-spacing: 0.12em;
  color: rgba(245, 235, 200, 0.72);
}

.cc-online-room-code {
  font: 900 2.1rem 'Cinzel', 'Shippori Mincho', serif;
  letter-spacing: 0.14em;
  color: #f8de8a;
}

.cc-online-waiting-note {
  min-height: 24px;
  color: rgba(245, 235, 200, 0.82);
  font: 800 0.95rem 'Cinzel', 'Shippori Mincho', serif;
  letter-spacing: 0.04em;
}

.cc-online-start {
  width: 100%;
}

.cc-online-room-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.cc-online-btn.danger {
  background: linear-gradient(180deg, rgba(83, 42, 35, 0.98), rgba(46, 16, 15, 0.98));
}

.cc-online-status {
  min-height: 42px;
  padding: 12px 14px;
  border-top: 1px solid rgba(222, 190, 112, 0.18);
  color: rgba(245, 235, 200, 0.86);
  font-size: 0.98rem;
  line-height: 1.55;
}

.cc-library-grid {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-content: start;
  gap: 18px;
  padding: 2px 8px 18px 2px;
}

.cc-library-slot {
  position: relative;
  min-height: 354px;
  border: 1px solid rgba(65, 135, 178, 0.45);
  border-radius: 8px;
  background: rgba(11, 24, 44, 0.72);
  display: grid;
  place-items: center;
  padding: 10px;
}

.cc-library-slot.newly-owned {
  border-color: rgba(106, 255, 168, 0.88);
  box-shadow:
    0 0 0 1px rgba(104, 255, 169, 0.28),
    0 0 22px rgba(82, 255, 158, 0.22),
    inset 0 0 24px rgba(82, 255, 158, 0.08);
}

.cc-library-new-badge {
  position: absolute;
  z-index: 4;
  right: 10px;
  top: 10px;
  min-width: 56px;
  padding: 5px 9px 4px;
  border: 1px solid rgba(140, 255, 180, 0.92);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(94, 255, 166, 0.28), rgba(11, 54, 34, 0.96)),
    rgba(4, 24, 18, 0.96);
  color: #dffff0;
  font-family: 'Cinzel', 'Noto Sans JP', serif;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.92),
    0 0 8px rgba(92, 255, 158, 0.72);
  box-shadow:
    0 0 16px rgba(88, 255, 162, 0.36),
    inset 0 0 10px rgba(214, 255, 226, 0.14);
  pointer-events: none;
}

.cc-library-slot .card,
.cc-profile-avatar-slot .card {
  transform: scale(0.78);
  transform-origin: center;
  pointer-events: none;
}

.cc-library-slot .card,
.cc-profile-avatar-slot .card,
.cc-library-zoom-card .card {
  width: 236px !important;
  height: 344px !important;
  border-radius: 14px !important;
}

.cc-library-slot .card-name,
.cc-profile-avatar-slot .card-name,
.cc-library-zoom-card .card-name {
  top: 6.5px !important;
  left: 57.2px !important;
  right: 60px !important;
  font-size: 1.22rem !important;
}

.cc-library-slot .card-bp-icon,
.cc-profile-avatar-slot .card-bp-icon,
.cc-library-zoom-card .card-bp-icon {
  top: 7px !important;
  right: 8px !important;
  width: 36px !important;
  height: 36px !important;
}

.cc-library-slot .card-bp-letter,
.cc-profile-avatar-slot .card-bp-letter,
.cc-library-zoom-card .card-bp-letter {
  font-size: 14px !important;
}

.cc-library-slot .card-image,
.cc-profile-avatar-slot .card-image,
.cc-library-zoom-card .card-image {
  top: 46px !important;
  left: 9px !important;
  right: 9px !important;
  height: 186px !important;
  border-radius: 6px !important;
}

.cc-library-slot .card-image-lv,
.cc-profile-avatar-slot .card-image-lv,
.cc-library-zoom-card .card-image-lv {
  top: 51px !important;
  left: 20px !important;
  font-size: 0.88rem !important;
}

.cc-library-slot .card-effect-panel,
.cc-profile-avatar-slot .card-effect-panel {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cc-library-slot .card-image-race,
.cc-profile-avatar-slot .card-image-race,
.cc-library-zoom-card .card-image-race {
  display: none !important;
}

.cc-library-slot .card-attr-orbs,
.cc-profile-avatar-slot .card-attr-orbs,
.cc-library-zoom-card .card-attr-orbs {
  display: none !important;
}

.cc-library-slot .card-cost,
.cc-profile-avatar-slot .card-cost,
.cc-library-zoom-card .card-cost {
  display: none !important;
}

.cc-library-slot .card-image-tag,
.cc-profile-avatar-slot .card-image-tag,
.cc-library-zoom-card .card-image-tag {
  left: 16px !important;
  right: auto !important;
  top: 212px !important;
  color: #f4f4f4;
  font-size: 0.88rem;
}

.cc-library-slot .card-effect-panel,
.cc-profile-avatar-slot .card-effect-panel,
.cc-library-zoom-card .card-effect-panel {
  top: 235px !important;
  left: 15px !important;
  right: 15px !important;
  height: 58px !important;
  padding: 8px !important;
}

.cc-library-slot .card-stats,
.cc-profile-avatar-slot .card-stats,
.cc-library-zoom-card .card-stats {
  left: 14px !important;
  right: 14px !important;
  bottom: 5px !important;
  gap: 6px !important;
}

.cc-library-slot .card-stats span,
.cc-profile-avatar-slot .card-stats span,
.cc-library-zoom-card .card-stats span {
  font-size: 1.34rem !important;
  padding: 7px 0 6px !important;
}

.cc-library-slot .card-stats span:first-child,
.cc-library-zoom-card .card-stats span:first-child,
.cc-profile-avatar-slot .card-stats span:first-child,
.cc-library-slot .card-stats span:last-child,
.cc-profile-avatar-slot .card-stats span:last-child,
.cc-library-zoom-card .card-stats span:last-child {
  transform: none !important;
}

.cc-library-card-attrs {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cc-library-panel-attr {
  position: static !important;
  width: 26px;
  height: 26px;
  display: inline-block;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.cc-library-panel-attr::after {
  content: attr(data-attr-code);
  position: absolute;
  inset: 0;
  display: grid !important;
  place-items: center;
  color: #f8f5ea;
  font-family: 'Cinzel', serif;
  font-size: 0.76rem;
  font-weight: 800;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.96),
    0 0 6px rgba(0, 0, 0, 0.76);
  pointer-events: none;
}

.cc-library-panel-attr-text {
  color: #d7edf5;
  font-size: 0.82rem;
  font-weight: 800;
}

.cc-library-card-locked {
  width: 168px;
  height: 246px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(222, 190, 112, 0.24);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(215, 182, 96, 0.13), transparent 42%),
    radial-gradient(circle at 50% 42%, rgba(68, 90, 128, 0.52), rgba(7, 13, 27, 0.96) 68%);
  color: rgba(236, 224, 187, 0.42);
  font-family: 'Cinzel', serif;
  font-size: 4rem;
  font-weight: 700;
}

.cc-library-empty {
  grid-column: 1 / -1;
  padding: 80px 20px;
  text-align: center;
  color: rgba(236, 229, 210, 0.82);
  font-size: 1.25rem;
}

.cc-library-zoom-modal {
  position: absolute;
  inset: 0;
  z-index: 3500;
  width: 1920px;
  height: 1080px;
}

.cc-library-zoom-modal.hidden {
  display: none;
}

.cc-library-zoom-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.cc-library-zoom-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 760px;
  min-height: 900px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  padding: 64px 44px 38px;
  border: 1px solid rgba(222, 190, 112, 0.56);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(8, 14, 30, 0.98), rgba(3, 8, 18, 0.99));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.68);
}

.cc-library-zoom-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.cc-library-zoom-card {
  width: 460px;
  height: 630px;
  display: grid;
  place-items: center;
}

.cc-library-zoom-card .card {
  transform: scale(1.55);
  transform-origin: center;
  pointer-events: none;
}

.cc-library-zoom-name {
  color: #f3e7c2;
  font-size: 1.9rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
  max-width: 660px;
}

.cc-library-zoom-flavor {
  max-width: 660px;
  min-height: 92px;
  padding: 16px 20px;
  border-top: 1px solid rgba(222, 190, 112, 0.34);
  border-bottom: 1px solid rgba(222, 190, 112, 0.28);
  color: #d9ceb0;
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.55;
  text-align: left;
  white-space: pre-wrap;
}

.cc-library-zoom-flavor.hidden {
  display: none;
}

html.cc-mobile-portrait,
html.cc-mobile-portrait body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: manipulation;
}

html.cc-mobile-portrait #gameCanvasRoot {
  width: 1080px !important;
  height: var(--mobile-canvas-height, 1920px) !important;
}

html.cc-mobile-portrait body.fixed-canvas-mode .daifugo-screen,
html.cc-mobile-portrait body.fixed-canvas-mode .cc-title-screen,
html.cc-mobile-portrait body.fixed-canvas-mode .cc-option-modal,
html.cc-mobile-portrait body.fixed-canvas-mode .cc-library-modal,
html.cc-mobile-portrait body.fixed-canvas-mode .cc-library-zoom-modal,
html.cc-mobile-portrait body.fixed-canvas-mode .cc-profile-avatar-modal,
html.cc-mobile-portrait body.fixed-canvas-mode .cc-online-modal {
  width: 1080px !important;
  height: var(--mobile-canvas-height, 1920px) !important;
}

html.cc-mobile-portrait .cc-title-logo { top: 210px; width: 880px; }

html.cc-mobile-portrait body.daifugo-standalone-body .cc-title-menu {
  top: 760px;
  width: 760px;
  gap: 22px;
}

html.cc-mobile-portrait body.daifugo-standalone-body .cc-title-btn {
  min-height: 92px;
  font-size: 2rem;
}

html.cc-mobile-portrait .cc-title-subtext {
  top: 1270px;
  width: 840px;
  font-size: 1.6rem;
  line-height: 1.75;
}

html.cc-mobile-portrait .cc-language-select {
  right: 72px;
  bottom: 88px;
  font-size: 1.25rem;
}

html.cc-mobile-portrait .cc-language-select select {
  min-width: 220px;
  min-height: 58px;
}

html.cc-mobile-portrait .cc-profile-panel {
  left: 90px;
  right: 90px;
  bottom: 250px;
  grid-template-columns: 120px 1fr;
  padding: 18px;
}

html.cc-mobile-portrait .cc-profile-avatar-btn {
  width: 120px;
  height: 120px;
}

html.cc-mobile-portrait .cc-profile-name-label,
html.cc-mobile-portrait .cc-profile-avatar-name,
html.cc-mobile-portrait .cc-profile-btn {
  font-size: 1.05rem;
}

html.cc-mobile-portrait .cc-profile-name-input {
  height: 50px;
  font-size: 1.15rem;
}

html.cc-mobile-portrait .cc-profile-btn {
  height: 50px;
}

html.cc-mobile-portrait .cc-profile-avatar-panel {
  inset: 90px 58px;
}

html.cc-mobile-portrait .cc-profile-avatar-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html.cc-mobile-portrait .daifugo-screen-layout {
  width: 1080px;
  height: var(--mobile-canvas-height, 1920px);
  display: block;
  padding: 0;
}

html.cc-mobile-portrait .daifugo-header {
  left: 24px;
  right: 24px;
  top: 22px;
  min-height: 84px;
  padding: 14px 18px;
  border-radius: 18px;
  z-index: 80;
}

html.cc-mobile-portrait .daifugo-title { font-size: 2rem; }

html.cc-mobile-portrait .daifugo-subtitle,
html.cc-mobile-portrait .daifugo-player-count-label,
html.cc-mobile-portrait .daifugo-player-count-select {
  display: none;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-header {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-header-controls {
  justify-content: center;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-player-count-label {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-player-count-select {
  display: inline-flex;
  min-height: 52px;
  max-width: 112px;
  padding: 0 8px;
  font-size: 1rem;
}

html.cc-mobile-portrait .daifugo-round-indicator {
  font-size: 1.45rem;
  margin-left: 10px;
}

html.cc-mobile-portrait .daifugo-header-controls { gap: 8px; }

html.cc-mobile-portrait .daifugo-header-btn {
  min-height: 54px;
  padding: 0 16px;
  font-size: 1.12rem;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-header {
  transform: translateY(calc(-100% - 28px));
}

html.cc-mobile-portrait .daifugo-board-shell,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-board-shell {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  overflow: hidden;
}

html.cc-mobile-portrait .daifugo-board-shell::before,
html.cc-mobile-portrait .daifugo-board-shell::after {
  display: none;
}

html.cc-mobile-portrait .daifugo-seat {
  position: absolute;
  z-index: 24;
  display: block;
  transform: none;
}

html.cc-mobile-portrait .daifugo-seat.top {
  left: 50%;
  top: 120px;
  transform: translateX(-50%);
}

html.cc-mobile-portrait .daifugo-seat.side.left { left: 24px; top: 136px; }
html.cc-mobile-portrait .daifugo-seat.side.right { right: 24px; top: 136px; }
html.cc-mobile-portrait .daifugo-seat.hidden-seat { display: none; }

html.cc-mobile-portrait .daifugo-seat-panel,
html.cc-mobile-portrait .daifugo-seat-panel.top {
  display: grid;
  grid-template-columns: auto;
  grid-template-areas: "portrait" "info";
  justify-items: center;
  gap: 6px;
}

html.cc-mobile-portrait .daifugo-back-fan {
  display: none !important;
}

html.cc-mobile-portrait .daifugo-seat-portrait.top,
html.cc-mobile-portrait .daifugo-seat-portrait.left,
html.cc-mobile-portrait .daifugo-seat-portrait.right {
  grid-area: portrait;
  width: 112px;
  height: 112px;
  margin: 0;
  transform: none;
  border-radius: 18px;
}

html.cc-mobile-portrait .daifugo-seat-info,
html.cc-mobile-portrait .daifugo-seat-info.top,
html.cc-mobile-portrait .daifugo-seat-info.left,
html.cc-mobile-portrait .daifugo-seat-info.right {
  grid-area: info;
  width: 204px;
  max-width: 204px;
  min-width: 0;
  justify-items: center;
  transform: none;
  padding: 8px 10px;
  border-radius: 14px;
}

html.cc-mobile-portrait .daifugo-seat-head {
  max-width: 184px;
  font-size: 1.05rem;
  line-height: 1.18;
}

html.cc-mobile-portrait .daifugo-seat-rank,
html.cc-mobile-portrait .daifugo-seat-status { font-size: 0.9rem; }
html.cc-mobile-portrait .daifugo-seat-count { font-size: 1rem; }

html.cc-mobile-portrait .daifugo-table-stage {
  position: absolute;
  left: 0;
  right: 0;
  top: 300px;
  height: 760px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  align-content: start;
  padding: 0;
  overflow: visible;
}

html.cc-mobile-portrait .daifugo-table-header {
  position: static;
  width: 900px;
  margin: 0 0 10px;
  transform: none;
  align-items: center;
  text-align: center;
}

html.cc-mobile-portrait .daifugo-turn-badge {
  font-size: 1.5rem;
  padding: 10px 22px;
}

html.cc-mobile-portrait .daifugo-table-meta {
  max-width: 850px;
  min-height: 42px;
  font-size: 1.22rem;
  text-align: center;
  line-height: 1.35;
}

html.cc-mobile-portrait .daifugo-table {
  width: 920px;
  height: 570px;
  min-height: 570px;
  padding: 8px 12px;
  gap: 18px;
  transform: none;
  align-items: center;
}

html.cc-mobile-portrait .daifugo-card-slot.table {
  width: 410px;
  min-width: 410px;
  height: 590px;
}

html.cc-mobile-portrait .daifugo-card-slot.table .card { transform: scale(1.72); }
html.cc-mobile-portrait .daifugo-table-play-row { gap: 10px; }

html.cc-mobile-portrait .daifugo-lock-panel {
  left: 36px;
  top: 470px;
  width: 238px;
  padding: 10px 12px;
  z-index: 18;
}

html.cc-mobile-portrait .daifugo-lock-title { font-size: 1rem; }

html.cc-mobile-portrait .daifugo-lock-line,
html.cc-mobile-portrait .daifugo-lock-empty { font-size: 0.9rem; }

html.cc-mobile-portrait .daifugo-symbol-legend,
html.cc-mobile-portrait .daifugo-player-status {
  display: none !important;
}

html.cc-mobile-portrait .daifugo-draft-area {
  width: 900px;
  height: 78px;
  min-height: 78px;
  margin: -18px 0 0;
  padding: 0;
}

html.cc-mobile-portrait .daifugo-draft-area.active { display: none; }
html.cc-mobile-portrait .daifugo-draft-placeholder { font-size: 1.05rem; }

html.cc-mobile-portrait .daifugo-hand {
  left: 0;
  right: 0;
  bottom: 190px;
  height: 850px;
  padding: 88px 270px 72px;
  align-items: center;
  gap: 84px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 270px;
  z-index: 30;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(4, 10, 9, 0.5) 32%, rgba(4, 10, 9, 0.78));
}

html.cc-mobile-portrait .daifugo-card-slot.hand {
  width: 540px;
  min-width: 540px;
  height: 760px;
  margin-right: 0;
  scroll-snap-align: center;
  place-items: start center;
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

html.cc-mobile-portrait .daifugo-card-slot.hand .card { transform: scale(2.15); }

html.cc-mobile-portrait .daifugo-card-slot.hand:not(.mobile-focus):not(.selected) {
  opacity: 0.58;
  transform: scale(0.74);
}

html.cc-mobile-portrait .daifugo-card-slot.hand.mobile-focus,
html.cc-mobile-portrait .daifugo-card-slot.hand.selected,
html.cc-mobile-portrait .daifugo-card-slot.hand.selectable:hover,
html.cc-mobile-portrait .daifugo-card-slot.selected:hover,
html.cc-mobile-portrait .daifugo-card-slot.hand.daifugo-controller-selected {
  opacity: 1;
  transform: translateY(-18px);
  z-index: 6;
}

html.cc-mobile-portrait .daifugo-card-slot.hand.mobile-focus .card,
html.cc-mobile-portrait .daifugo-card-slot.hand.selected .card,
html.cc-mobile-portrait .daifugo-card-slot.hand.selectable:hover .card {
  transform: scale(2.15);
}

html.cc-mobile-portrait .daifugo-card-slot.selected {
  filter: drop-shadow(0 0 26px rgba(126, 255, 159, 0.42));
}

html.cc-mobile-portrait .daifugo-bottom-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  height: 210px;
  transform: none;
  z-index: 60;
  padding: 18px 26px 30px;
  background: linear-gradient(180deg, rgba(4, 8, 12, 0), rgba(3, 8, 12, 0.94) 24%);
}

html.cc-mobile-portrait .daifugo-action-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: stretch;
}

html.cc-mobile-portrait .daifugo-mobile-only { display: inline-flex; }

html.cc-mobile-portrait .daifugo-action-btn,
html.cc-mobile-portrait #daifugoPassBtn {
  min-width: 0;
  min-height: 74px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.28rem;
  letter-spacing: 0.06em;
}

html.cc-mobile-portrait #daifugoPairBtn.active {
  color: #9cffb5;
  border-color: rgba(126, 255, 159, 0.95);
  box-shadow:
    0 0 0 2px rgba(109, 255, 143, 0.28),
    0 0 18px rgba(75, 255, 124, 0.38),
    inset 0 0 16px rgba(75, 255, 124, 0.1);
}

html.cc-mobile-portrait .daifugo-action-btn[hidden] {
  display: none !important;
}

html.cc-mobile-portrait .daifugo-result.active {
  inset: 190px 34px 230px;
  max-height: none;
  overflow-y: auto;
}

/* Mobile portrait board pass 2: closer to the vertical table mockup. */
html.cc-mobile-portrait .daifugo-screen {
  background: #03130d !important;
}

html.cc-mobile-portrait .daifugo-screen-backdrop {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  width: 1920px;
  height: 1080px;
  background: url("material/table.png") center / cover no-repeat !important;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
  z-index: 0;
  opacity: 1;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-header,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-header-reveal-zone {
  display: none !important;
}

html.cc-mobile-portrait .daifugo-screen-layout {
  z-index: 2;
  padding: 0;
}

html.cc-mobile-portrait .daifugo-board-shell::before {
  display: none !important;
}

html.cc-mobile-portrait .daifugo-header {
  left: 18px;
  right: auto;
  top: 18px;
  width: 96px;
  min-height: 96px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

html.cc-mobile-portrait .daifugo-title-block,
html.cc-mobile-portrait .daifugo-round-indicator,
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-player-count-label,
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-player-count-select,
html.cc-mobile-portrait .daifugo-header-controls #daifugoHelpBtn,
html.cc-mobile-portrait .daifugo-header-controls #daifugoStartBtn {
  display: none;
}

html.cc-mobile-portrait .daifugo-header-controls {
  display: grid;
  place-items: center;
}

html.cc-mobile-portrait #daifugoTitleBtn {
  width: 76px;
  min-width: 76px;
  height: 76px;
  min-height: 76px;
  padding: 0;
  overflow: hidden;
  color: transparent;
  border-radius: 999px;
}

html.cc-mobile-portrait #daifugoTitleBtn::before {
  content: "≡";
  color: #f4e7c3;
  font-size: 3.4rem;
  line-height: 1;
}

html.cc-mobile-portrait .daifugo-seat.top {
  left: 390px;
  top: 184px;
  width: 312px;
  transform: none;
}

html.cc-mobile-portrait .daifugo-seat.side.left {
  left: 34px;
  top: 184px;
  width: 312px;
}

html.cc-mobile-portrait .daifugo-seat.side.right {
  left: 744px;
  right: auto;
  top: 184px;
  width: 312px;
}

html.cc-mobile-portrait .daifugo-seat-panel,
html.cc-mobile-portrait .daifugo-seat-panel.top,
html.cc-mobile-portrait .daifugo-seat-panel.left,
html.cc-mobile-portrait .daifugo-seat-panel.right {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: "portrait info";
  column-gap: 8px;
  align-items: center;
  justify-items: start;
}

html.cc-mobile-portrait .daifugo-seat-portrait.top,
html.cc-mobile-portrait .daifugo-seat-portrait.left,
html.cc-mobile-portrait .daifugo-seat-portrait.right {
  width: 116px;
  height: 116px;
  border-radius: 14px;
}

html.cc-mobile-portrait .daifugo-seat-info.top,
html.cc-mobile-portrait .daifugo-seat-info.left,
html.cc-mobile-portrait .daifugo-seat-info.right {
  width: 188px;
  max-width: 188px;
  min-height: 112px;
  justify-items: start;
  align-content: center;
  padding: 9px 10px;
  border-color: rgba(226, 198, 129, 0.5);
}

html.cc-mobile-portrait .daifugo-seat-head {
  max-width: 166px;
  font-size: 1rem;
}

html.cc-mobile-portrait .daifugo-seat-rank,
html.cc-mobile-portrait .daifugo-seat-status {
  font-size: 0.82rem;
}

html.cc-mobile-portrait .daifugo-seat-count {
  font-size: 0.86rem;
}

html.cc-mobile-portrait .daifugo-table-stage {
  top: 505px;
  height: 710px;
}

html.cc-mobile-portrait .daifugo-table-header {
  position: absolute;
  left: 592px;
  right: auto;
  top: -88px;
  width: 388px;
  min-height: 164px;
  align-items: flex-start;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid rgba(223, 197, 126, 0.28);
  background: linear-gradient(180deg, rgba(14, 28, 24, 0.88), rgba(6, 14, 18, 0.82));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
  transform: none;
}

html.cc-mobile-portrait .daifugo-turn-badge {
  width: auto;
  font-size: 1.34rem;
}

html.cc-mobile-portrait .daifugo-table-meta {
  width: 330px;
  font-size: 1.02rem;
  line-height: 1.35;
}

html.cc-mobile-portrait .daifugo-lock-panel {
  left: 76px;
  top: 392px;
  width: 390px;
  min-height: 148px;
  transform: none;
  padding: 18px 20px;
  z-index: 28;
}

html.cc-mobile-portrait .daifugo-lock-title {
  font-size: 1.28rem;
}

html.cc-mobile-portrait .daifugo-lock-line,
html.cc-mobile-portrait .daifugo-lock-empty {
  font-size: 1.06rem;
}

html.cc-mobile-portrait .daifugo-table {
  width: 1070px;
  height: 600px;
  min-height: 600px;
  padding: 0;
  margin-top: 145px;
  overflow: visible;
}

html.cc-mobile-portrait .daifugo-card-slot.table {
  width: 390px;
  min-width: 390px;
  height: 550px;
}

html.cc-mobile-portrait .daifugo-card-slot.table .card {
  transform: scale(1.62);
  transform-origin: top center;
}

html.cc-mobile-portrait .daifugo-table-play-group {
  gap: 6px;
}

html.cc-mobile-portrait .daifugo-table-play-row {
  gap: 0;
}

html.cc-mobile-portrait .daifugo-table-play-row .daifugo-card-slot.table + .daifugo-card-slot.table {
  margin-left: -22px;
}

html.cc-mobile-portrait .daifugo-player-status {
  display: grid !important;
  left: 76px;
  top: 1266px;
  bottom: auto;
  min-width: 300px;
  padding: 14px 16px;
  z-index: 36;
  cursor: default;
}

html.cc-mobile-portrait .daifugo-player-status-name,
html.cc-mobile-portrait .daifugo-player-status-rank,
html.cc-mobile-portrait .daifugo-player-status-count,
html.cc-mobile-portrait .daifugo-player-status-state {
  font-size: 1.12rem;
}

html.cc-mobile-portrait .daifugo-symbol-legend {
  display: grid !important;
  left: auto;
  right: 76px;
  top: 1266px;
  min-width: 300px;
  padding: 14px 16px;
  z-index: 36;
}

html.cc-mobile-portrait .daifugo-symbol-legend-title {
  font-size: 1.16rem;
}

html.cc-mobile-portrait .daifugo-symbol-legend-line {
  font-size: 1.06rem;
}

html.cc-mobile-portrait .daifugo-hand {
  left: 0;
  right: 0;
  bottom: 240px;
  height: 390px;
  padding: 52px 42px 42px;
  gap: 0;
  align-items: flex-end;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 28px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(3, 8, 12, 0.72) 18%, rgba(3, 8, 12, 0.94));
}

html.cc-mobile-portrait .daifugo-card-slot.hand {
  width: 258px;
  min-width: 258px;
  height: 350px;
  margin-right: -34px;
  scroll-snap-align: start;
}

html.cc-mobile-portrait .daifugo-card-slot.hand .card,
html.cc-mobile-portrait .daifugo-card-slot.hand.mobile-focus .card,
html.cc-mobile-portrait .daifugo-card-slot.hand.selected .card,
html.cc-mobile-portrait .daifugo-card-slot.hand.selectable:hover .card {
  transform: scale(1.06);
  transform-origin: top center;
}

html.cc-mobile-portrait .daifugo-card-slot.hand:not(.mobile-focus):not(.selected) {
  opacity: 1;
  transform: none;
}

html.cc-mobile-portrait .daifugo-card-slot.hand:not(.mobile-focus):not(.selected):nth-child(6n+1) {
  transform: translateY(24px) rotate(-7deg);
}

html.cc-mobile-portrait .daifugo-card-slot.hand:not(.mobile-focus):not(.selected):nth-child(6n+2) {
  transform: translateY(9px) rotate(-4deg);
}

html.cc-mobile-portrait .daifugo-card-slot.hand:not(.mobile-focus):not(.selected):nth-child(6n+3) {
  transform: translateY(0) rotate(-1.5deg);
}

html.cc-mobile-portrait .daifugo-card-slot.hand:not(.mobile-focus):not(.selected):nth-child(6n+4) {
  transform: translateY(0) rotate(1.5deg);
}

html.cc-mobile-portrait .daifugo-card-slot.hand:not(.mobile-focus):not(.selected):nth-child(6n+5) {
  transform: translateY(9px) rotate(4deg);
}

html.cc-mobile-portrait .daifugo-card-slot.hand:not(.mobile-focus):not(.selected):nth-child(6n) {
  transform: translateY(24px) rotate(7deg);
}

html.cc-mobile-portrait .daifugo-card-slot.hand.mobile-focus,
html.cc-mobile-portrait .daifugo-card-slot.hand.selected,
html.cc-mobile-portrait .daifugo-card-slot.hand.selectable:hover,
html.cc-mobile-portrait .daifugo-card-slot.selected:hover,
html.cc-mobile-portrait .daifugo-card-slot.hand.daifugo-controller-selected {
  transform: translateY(-18px);
}

html.cc-mobile-portrait .daifugo-card-slot.selected {
  filter: drop-shadow(0 0 20px rgba(126, 255, 159, 0.42));
}

html.cc-mobile-portrait .daifugo-bottom-strip {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 48;
}

html.cc-mobile-portrait .daifugo-action-row {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

html.cc-mobile-portrait .daifugo-action-btn,
html.cc-mobile-portrait #daifugoPassBtn {
  min-height: 92px;
  font-size: 1.34rem;
}

html.cc-mobile-portrait #daifugoPlayBtn,
html.cc-mobile-portrait #daifugoPairBtn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 1744px;
  width: 370px;
  min-width: 370px;
  min-height: 92px;
  pointer-events: auto;
  color: transparent;
}

html.cc-mobile-portrait #daifugoPlayBtn {
  left: 54px;
}

html.cc-mobile-portrait #daifugoPairBtn {
  left: 656px;
}

html.cc-mobile-portrait #daifugoPlayBtn::after {
  content: "1枚";
  color: #f4e7c3;
}

html.cc-mobile-portrait #daifugoPairBtn::after {
  content: "2枚";
  color: #f4e7c3;
}

html.cc-mobile-portrait #daifugoPassBtn {
  position: absolute;
  left: 686px;
  top: 1066px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  min-width: 260px;
  min-height: 92px;
  pointer-events: auto;
}

/* Setup state must stay fully operable on mobile. */
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-header {
  left: 24px;
  right: 24px;
  top: 22px;
  width: auto;
  min-height: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 18px;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-title-block,
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-round-indicator,
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-header-controls,
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-player-count-label,
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-player-count-select,
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-header-controls #daifugoHelpBtn,
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-header-controls #daifugoStartBtn,
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-header-controls #daifugoTitleBtn {
  display: flex;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-header-controls {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-title {
  font-size: 1.5rem;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-subtitle {
  display: block;
  font-size: 1rem;
}

/* Mobile setup replaces the compact PC header with a title-screen style menu. */
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-header {
  left: 0 !important;
  right: auto !important;
  top: 0 !important;
  width: 1080px !important;
  height: 1920px !important;
  min-height: 1920px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(0, 8, 7, 0.18), rgba(0, 8, 7, 0.42)) !important;
  box-shadow: none !important;
  display: block !important;
  pointer-events: none;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-title-block,
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-round-indicator {
  display: none !important;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-header-controls {
  position: absolute;
  left: 50%;
  top: 455px;
  transform: translateX(-50%);
  width: 760px;
  display: grid !important;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 18px 22px;
  pointer-events: auto;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-player-count-label {
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  min-height: 72px;
  color: #d9cfad;
  font-family: 'Cinzel', 'Noto Sans JP', serif;
  font-size: 1.42rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.78);
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-header-btn {
  width: 760px !important;
  max-width: none !important;
  min-width: 760px !important;
  min-height: 86px !important;
  height: 86px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(199, 169, 86, 0.88) !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, rgba(77, 111, 28, 0.92), rgba(24, 50, 24, 0.94) 52%, rgba(4, 20, 18, 0.98)) !important;
  color: #f3ead0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 244, 177, 0.24), 0 8px 24px rgba(0, 0, 0, 0.42) !important;
  font-family: 'Cinzel', 'Noto Sans JP', serif !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em;
  text-align: center;
  text-align-last: center;
  pointer-events: auto;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-player-count-select {
  width: 518px !important;
  max-width: 518px !important;
  min-width: 518px !important;
  min-height: 72px !important;
  height: 72px !important;
  display: block !important;
  padding: 0 58px 0 24px !important;
  border: 1px solid rgba(199, 169, 86, 0.72) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(15, 31, 26, 0.96), rgba(4, 18, 17, 0.98)) !important;
  color: #f3ead0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 244, 177, 0.18), 0 8px 22px rgba(0, 0, 0, 0.36) !important;
  font-family: 'Cinzel', 'Noto Sans JP', serif !important;
  font-size: 1.7rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  text-align: center;
  text-align-last: center;
  pointer-events: auto;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-player-count-select option {
  background: #071512;
  color: #f3ead0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.4rem;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) #daifugoStartBtn {
  grid-column: 1 / -1;
  order: 20;
  margin-top: 26px;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) #daifugoHelpBtn {
  grid-column: 1 / -1;
  order: 21;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) #daifugoTitleBtn {
  grid-column: 1 / -1;
  order: 22;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) #daifugoTitleBtn::before {
  content: none !important;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-lock-panel,
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-table-header,
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-player-status,
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-symbol-legend,
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-bottom-strip,
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-hand,
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-deck-stack,
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-table {
  display: none !important;
}

html.cc-mobile-portrait .daifugo-help-modal {
  z-index: 50010 !important;
}

html.cc-mobile-portrait .daifugo-help-panel {
  width: 1010px !important;
  max-height: calc(var(--mobile-canvas-height, 1920px) - 96px) !important;
  border-radius: 24px !important;
  border-color: rgba(223, 197, 126, 0.48) !important;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.58) !important;
}

html.cc-mobile-portrait .daifugo-help-head {
  padding: 34px 38px !important;
}

html.cc-mobile-portrait .daifugo-help-title {
  font-size: 2.72rem !important;
  line-height: 1.2 !important;
}

html.cc-mobile-portrait .daifugo-help-close {
  min-width: 92px !important;
  min-height: 92px !important;
  border-radius: 18px !important;
  font-size: 2.85rem !important;
}

html.cc-mobile-portrait .daifugo-help-body {
  max-height: calc(var(--mobile-canvas-height, 1920px) - 260px) !important;
  gap: 26px !important;
  padding: 34px 38px 44px !important;
}

html.cc-mobile-portrait .daifugo-help-section {
  gap: 16px !important;
  padding: 28px 30px !important;
  border-radius: 20px !important;
}

html.cc-mobile-portrait .daifugo-help-section-title {
  font-size: 2.12rem !important;
  line-height: 1.25 !important;
}

html.cc-mobile-portrait .daifugo-help-section p {
  font-size: 1.96rem !important;
  line-height: 1.68 !important;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) #daifugoTitleBtn {
  width: auto;
  min-width: 86px;
  height: auto;
  min-height: 52px;
  padding: 0 14px;
  color: #f7f2df;
  border-radius: 10px;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) #daifugoTitleBtn::before {
  content: none;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-player-count-label {
  align-items: center;
  font-size: 0.98rem;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed) .daifugo-player-count-select {
  min-height: 52px;
  max-width: 112px;
  padding: 0 8px;
  font-size: 1rem;
}

/* Final mobile battle layout. This must stay last. */
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-header,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-header-reveal-zone {
  display: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-board-shell,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-table-stage {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 1080px !important;
  height: 1920px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  overflow: visible !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-board-shell::before,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-board-shell::after {
  display: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat {
  position: absolute !important;
  top: 18px !important;
  width: 364px !important;
  height: 184px !important;
  z-index: 34 !important;
  transform: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat.side.left {
  left: 4px !important;
  right: auto !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat.top {
  left: 358px !important;
  right: auto !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat.side.right {
  left: 712px !important;
  right: auto !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-panel,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-panel.top,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-panel.left,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-panel.right {
  display: grid !important;
  grid-template-columns: 160px minmax(0, 1fr) !important;
  grid-template-areas: "portrait info" !important;
  column-gap: 10px !important;
  align-items: center !important;
  justify-items: start !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-portrait.top,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-portrait.left,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-portrait.right {
  width: 160px !important;
  height: 160px !important;
  margin: 0 !important;
  transform: none !important;
  border-radius: 14px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-info.top,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-info.left,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-info.right {
  width: 188px !important;
  max-width: 188px !important;
  min-width: 0 !important;
  min-height: 150px !important;
  padding: 12px 12px !important;
  justify-items: start !important;
  align-content: center !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-head {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 168px !important;
  font-size: 1.62rem !important;
  line-height: 1.16 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-name {
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 168px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-rank,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-status {
  font-size: 1.42rem !important;
  line-height: 1.18 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-count {
  font-size: 1.4rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-lock-panel {
  position: absolute !important;
  left: 76px !important;
  top: 246px !important;
  width: 430px !important;
  min-height: 176px !important;
  transform: none !important;
  z-index: 38 !important;
  padding: 22px 24px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-table-header {
  position: absolute !important;
  left: 576px !important;
  top: 246px !important;
  width: 430px !important;
  min-height: 176px !important;
  transform: none !important;
  z-index: 38 !important;
  padding: 22px 24px !important;
  align-items: flex-start !important;
  border-radius: 14px !important;
  border: 1px solid rgba(223, 197, 126, 0.28) !important;
  background: linear-gradient(180deg, rgba(14, 28, 24, 0.9), rgba(6, 14, 18, 0.84)) !important;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-turn-badge {
  width: auto !important;
  font-size: 2rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-table-meta {
  width: 374px !important;
  font-size: 1.58rem !important;
  line-height: 1.42 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-lock-title {
  font-size: 1.92rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-lock-line,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-lock-empty {
  font-size: 1.56rem !important;
  line-height: 1.45 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-table {
  position: absolute !important;
  left: 50% !important;
  top: 486px !important;
  width: 940px !important;
  height: 560px !important;
  min-height: 560px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateX(-50%) !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 34px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-table:has(.daifugo-table-play-group) {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-auto-rows: auto !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 26px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table {
  width: 398px !important;
  min-width: 398px !important;
  height: 564px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card {
  transform: scale(1.66) !important;
  transform-origin: top center !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card {
  width: 236px !important;
  height: 344px !important;
  border-radius: 14px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-cost,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-cost {
  top: 4px !important;
  left: 7px !important;
  width: 42px !important;
  height: 42px !important;
  padding-right: 0 !important;
  font-size: 1.72rem !important;
  transform: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-name,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-name {
  top: 6.5px !important;
  left: 57.2px !important;
  right: 60px !important;
  font-size: 1.22rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-bp-icon,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-bp-icon {
  top: 7px !important;
  right: 8px !important;
  width: 36px !important;
  height: 36px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-bp-letter,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-bp-letter {
  font-size: 14px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-image,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-image {
  top: 46px !important;
  left: 9px !important;
  right: 9px !important;
  height: 186px !important;
  background-size: cover !important;
  background-position: center !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-attr-orbs,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-attr-orbs {
  top: 48px !important;
  right: 20px !important;
  gap: 4px !important;
  max-width: 64px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-attr-orb,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-attr-orb {
  width: 18px !important;
  height: 18px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-image-lv,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-image-lv {
  top: 51px !important;
  left: 20px !important;
  font-size: 0.88rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-image-tag,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-image-tag {
  top: 212px !important;
  left: 16px !important;
  font-size: 0.88rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-image-race,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-image-race {
  top: 212px !important;
  right: 16px !important;
  font-size: 1rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-effect-panel,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-effect-panel {
  top: 235px !important;
  left: 15px !important;
  right: 15px !important;
  height: 58px !important;
  padding: 8px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-effect-line,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-effect-line {
  font-size: 0.88rem !important;
  line-height: 1.18 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-stats,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-stats {
  left: 14px !important;
  right: 14px !important;
  bottom: 5px !important;
  gap: 6px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-stats span,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-stats span {
  font-size: 1.34rem !important;
  padding: 7px 0 6px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-stats span:first-child,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-stats span:first-child,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-stats span:last-child,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-stats span:last-child {
  transform: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-table-play-row {
  gap: 30px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-table-play-label {
  font-size: 1.22rem !important;
  line-height: 1.2 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-table-play-row .daifugo-card-slot.table + .daifugo-card-slot.table {
  margin-left: 0 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-draft-area,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-draft-placeholder {
  display: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-bottom-strip {
  position: absolute !important;
  inset: 0 !important;
  z-index: 52 !important;
  pointer-events: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-action-row {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  pointer-events: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPassBtn {
  position: absolute !important;
  left: 812px !important;
  top: 1138px !important;
  width: 220px !important;
  min-width: 220px !important;
  min-height: 96px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
  z-index: 54 !important;
  font-size: 2.12rem !important;
  font-weight: 800 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn {
  position: absolute !important;
  top: 1742px !important;
  width: 452px !important;
  min-width: 452px !important;
  min-height: 122px !important;
  height: 122px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
  color: transparent !important;
  opacity: 1 !important;
  background: linear-gradient(180deg, rgba(76, 108, 39, 0.98), rgba(26, 52, 24, 0.98) 56%, rgba(7, 24, 20, 0.98)) !important;
  border: 1px solid rgba(223, 197, 126, 0.68) !important;
  box-shadow: inset 0 1px 0 rgba(255, 244, 177, 0.22), 0 8px 24px rgba(0, 0, 0, 0.32) !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn {
  left: 48px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn {
  left: 580px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn.single-unavailable,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn:disabled,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn:disabled {
  opacity: 0.42 !important;
  filter: grayscale(0.4) brightness(0.72) !important;
  border-color: rgba(139, 126, 94, 0.44) !important;
  box-shadow: inset 0 1px 0 rgba(255, 244, 177, 0.08), 0 6px 18px rgba(0, 0, 0, 0.24) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn.active,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn.single-active:not(:disabled) {
  opacity: 1 !important;
  border-color: rgba(126, 255, 159, 0.96) !important;
  box-shadow:
    0 0 0 3px rgba(109, 255, 143, 0.26),
    0 0 24px rgba(75, 255, 124, 0.38),
    inset 0 0 20px rgba(75, 255, 124, 0.14) !important;
  color: transparent !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn::after {
  content: "1枚";
  color: #f4e7c3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.55rem;
  font-weight: 800;
  line-height: 1;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn::after {
  content: "2枚";
  color: #f4e7c3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.55rem;
  font-weight: 800;
  line-height: 1;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoClearBtn {
  display: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-hand {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 188px !important;
  height: 540px !important;
  padding: 112px 44px 34px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scroll-snap-type: x proximity !important;
  pointer-events: auto !important;
  touch-action: pan-x !important;
  -webkit-overflow-scrolling: touch !important;
  background: transparent !important;
  z-index: 42 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand {
  width: 282px !important;
  min-width: 282px !important;
  height: 398px !important;
  margin-right: -26px !important;
  scroll-snap-align: center !important;
  transform: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.mobile-focus .card,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selected .card,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selectable:hover .card {
  transform: scale(1.22) !important;
  transform-origin: top center !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand:not(.mobile-focus):not(.selected):nth-child(6n+1),
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand:not(.mobile-focus):not(.selected):nth-child(6n+2),
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand:not(.mobile-focus):not(.selected):nth-child(6n+3),
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand:not(.mobile-focus):not(.selected):nth-child(6n+4),
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand:not(.mobile-focus):not(.selected):nth-child(6n+5),
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand:not(.mobile-focus):not(.selected):nth-child(6n) {
  transform: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selected,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.daifugo-controller-selected {
  transform: translateY(-58px) !important;
  z-index: 46 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.mobile-focus,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selectable:hover {
  transform: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selected .card {
  box-shadow:
    0 0 0 4px rgba(126, 255, 159, 0.9),
    0 0 28px rgba(75, 255, 124, 0.62),
    0 16px 28px rgba(0, 0, 0, 0.62) !important;
  filter: brightness(1.08) saturate(1.08);
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selected::after {
  display: none !important;
  content: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status {
  position: absolute !important;
  display: grid !important;
  left: 2px !important;
  top: 1078px !important;
  bottom: auto !important;
  min-width: 0 !important;
  width: 234px !important;
  gap: 4px !important;
  padding: 14px 12px !important;
  z-index: 50 !important;
  pointer-events: auto !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-status-toggle-btn {
  position: absolute !important;
  left: 98px !important;
  top: 118px !important;
  width: 122px !important;
  min-width: 122px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 6px !important;
  font-size: 1.08rem !important;
  justify-self: auto !important;
  pointer-events: auto !important;
  z-index: 80 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-name,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-rank,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-count,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-state {
  font-size: 1.68rem !important;
  line-height: 1.26 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-symbol-legend {
  position: fixed !important;
  display: grid !important;
  left: 300px !important;
  right: auto !important;
  top: 1130px !important;
  width: 390px !important;
  min-width: 390px !important;
  grid-template-columns: 1fr 1fr !important;
  align-items: center !important;
  gap: 8px 14px !important;
  padding: 10px 16px !important;
  z-index: 60 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-symbol-legend-title {
  display: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-symbol-legend-line {
  font-size: 1.62rem !important;
  line-height: 1.12 !important;
  white-space: nowrap !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-symbol-legend-mark {
  font-size: 1.72rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selected {
  transform: translateY(-58px) !important;
  z-index: 70 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selected .card {
  transform: scale(1.22) !important;
  transform-origin: top center !important;
}

html:not(.cc-mobile-portrait) #daifugoResultTitleBtn {
  display: none;
}

/* Mobile portrait result screen: no header, large centered report window. */
html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-header,
html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-header-reveal-zone {
  display: none !important;
}

html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-hand,
html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-bottom-strip,
html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-player-status,
html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-symbol-legend,
html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-lock-panel,
html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-table-header {
  opacity: 0.16 !important;
  pointer-events: none !important;
}

html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-result.active {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: min(920px, calc(100svw - 56px)) !important;
  max-width: calc(100svw - 56px) !important;
  max-height: calc(100svh - 112px) !important;
  min-height: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, -50%) !important;
  padding: 44px 52px !important;
  display: grid !important;
  gap: 24px !important;
  overflow-y: auto !important;
  z-index: 160 !important;
  border-radius: 28px !important;
  border: 2px solid rgba(217, 184, 95, 0.78) !important;
  background:
    linear-gradient(180deg, rgba(9, 24, 22, 0.98), rgba(3, 12, 11, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(83, 141, 76, 0.2), transparent 62%) !important;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.74),
    inset 0 0 0 1px rgba(255, 244, 182, 0.1),
    0 0 34px rgba(214, 175, 82, 0.18) !important;
}

html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-result-title {
  font-size: 2.35rem !important;
  line-height: 1.16 !important;
  letter-spacing: 0.08em !important;
  text-align: center !important;
  color: #ffe9a8 !important;
}

html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-result-list {
  display: grid !important;
  gap: 12px !important;
}

html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-result-row {
  display: grid !important;
  grid-template-columns: 130px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  min-height: 66px !important;
  padding: 12px 18px !important;
  font-size: 1.62rem !important;
  line-height: 1.22 !important;
  border-radius: 14px !important;
  background: rgba(3, 16, 14, 0.74) !important;
  border: 1px solid rgba(217, 184, 95, 0.3) !important;
}

html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-result-row strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 1.72rem !important;
}

html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-result-row span {
  white-space: nowrap !important;
}

html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-result-actions {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 28px !important;
  margin-top: 10px !important;
  pointer-events: auto !important;
}

html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-result-actions .daifugo-action-btn {
  display: inline-flex !important;
  width: 340px !important;
  min-height: 90px !important;
  padding: 0 22px !important;
  font-size: 1.78rem !important;
  letter-spacing: 0.08em !important;
}

/* Mobile portrait hand scale: larger cards, around three visible at once. */
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-hand {
  bottom: 132px !important;
  height: min(600px, 43svh) !important;
  padding: 126px 36px 22px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand {
  width: 330px !important;
  min-width: 330px !important;
  height: 466px !important;
  margin-right: -18px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.mobile-focus .card,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selected .card,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selectable:hover .card {
  transform: scale(1.43) !important;
  transform-origin: top center !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selected {
  transform: translateY(-66px) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn {
  top: auto !important;
  bottom: 18px !important;
  min-height: 100px !important;
}

/* iPhone-sized portrait refinement: readable text and unclipped large hand cards. */
html.cc-mobile-portrait .daifugo-screen.header-stowed {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-head,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-name {
  font-size: 1.92rem !important;
  line-height: 1.12 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-rank,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-status,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-count {
  font-size: 1.72rem !important;
  line-height: 1.16 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-lock-title,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-turn-badge {
  font-size: 2.18rem !important;
  line-height: 1.16 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-lock-line,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-lock-empty,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-table-meta {
  font-size: 1.82rem !important;
  line-height: 1.34 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-name,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-rank,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-count,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-state,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-symbol-legend-line,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-symbol-legend-mark {
  font-size: 1.88rem !important;
  line-height: 1.18 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPassBtn {
  font-size: 2.34rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-hand {
  bottom: 108px !important;
  height: min(700px, 55svh) !important;
  padding: 170px 34px 18px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand {
  width: 340px !important;
  min-width: 340px !important;
  height: 500px !important;
  margin-right: -16px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.mobile-focus .card,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selected .card,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selectable:hover .card {
  transform: scale(1.48) !important;
  transform-origin: top center !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selected {
  transform: translateY(-70px) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn {
  top: auto !important;
  bottom: 6px !important;
  height: 76px !important;
  min-height: 76px !important;
  padding: 0 14px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn::after,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn::after {
  font-size: 2.34rem !important;
}

/* Mobile portrait pass 2: stronger readability and unclipped hand headers. */
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-hand {
  bottom: 92px !important;
  height: min(780px, 62svh) !important;
  padding: 230px 34px 16px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand {
  height: 560px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selected {
  transform: translateY(-84px) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table {
  width: 424px !important;
  min-width: 424px !important;
  height: 600px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card {
  transform: scale(1.78) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-attr-orbs,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-attr-orbs {
  top: 48px !important;
  right: 15px !important;
  gap: 6px !important;
  max-width: 92px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-attr-orb,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-attr-orb {
  width: 24px !important;
  height: 24px !important;
  box-shadow: 0 0 0 2px rgba(255, 244, 202, 0.22), 0 2px 5px rgba(0, 0, 0, 0.48) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-image-race,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-image-race {
  top: 207px !important;
  right: 14px !important;
  font-size: 1.28rem !important;
  line-height: 1.08 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card-image-tag,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card-image-tag {
  top: 207px !important;
  font-size: 1.04rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status {
  width: 260px !important;
  padding: 16px 14px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-name,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-rank,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-count,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-state {
  font-size: 2.06rem !important;
  line-height: 1.2 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-status-toggle-btn {
  width: 136px !important;
  min-width: 136px !important;
  min-height: 50px !important;
  font-size: 1.24rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-symbol-legend {
  width: 440px !important;
  min-width: 440px !important;
  gap: 10px 18px !important;
  padding: 12px 18px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-symbol-legend-line,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-symbol-legend-mark {
  font-size: 2.04rem !important;
  line-height: 1.16 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-lock-panel,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-table-header {
  min-height: 196px !important;
  padding: 26px 28px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-lock-title,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-turn-badge {
  font-size: 2.34rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-lock-line,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-lock-empty,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-table-meta {
  font-size: 2rem !important;
  line-height: 1.34 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-table:has(.daifugo-table-play-group) {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 36px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-table-play-group {
  display: grid !important;
  justify-items: center !important;
  gap: 10px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-table-play-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  gap: 24px !important;
}

/* Mobile portrait pass 3: heavier UI text for real-device readability. */
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-head,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-name,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-rank,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-status,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-count,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-lock-title,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-lock-line,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-lock-empty,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-turn-badge,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-table-meta,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-name,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-rank,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-count,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-state,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-symbol-legend-line {
  color: #fff0c8 !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.92),
    0 0 7px rgba(255, 230, 160, 0.22) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-symbol-legend-mark {
  font-weight: 900 !important;
  opacity: 1 !important;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.92) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-info,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-lock-panel,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-table-header,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-symbol-legend {
  color: #fff0c8 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-hand {
  bottom: 64px !important;
  height: min(840px, 70svh) !important;
  padding: 286px 34px 14px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand {
  height: 610px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selected {
  transform: translateY(-94px) !important;
}

/* Mobile portrait pass 4: no letterbox, clearer player panel, lower hand. */
html.cc-mobile-portrait .daifugo-screen {
  min-height: var(--mobile-canvas-height, 1920px) !important;
}

html.cc-mobile-portrait .daifugo-screen-backdrop {
  height: max(1080px, var(--mobile-canvas-height, 1920px)) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status {
  left: 10px !important;
  top: 1118px !important;
  width: 292px !important;
  min-width: 292px !important;
  grid-template-columns: auto auto !important;
  grid-template-areas:
    "name state"
    "rank button"
    "count button" !important;
  align-items: center !important;
  gap: 4px 10px !important;
  padding: 14px 14px !important;
  border-radius: 12px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-name {
  grid-area: name !important;
  font-size: 1.86rem !important;
  line-height: 1 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-rank {
  grid-area: rank !important;
  font-size: 1.72rem !important;
  line-height: 1.08 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-count {
  grid-area: count !important;
  font-size: 1.72rem !important;
  line-height: 1.08 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-state {
  grid-area: state !important;
  justify-self: end !important;
  font-size: 1.78rem !important;
  line-height: 1.08 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-status-toggle-btn {
  position: static !important;
  grid-area: button !important;
  justify-self: end !important;
  align-self: stretch !important;
  width: 126px !important;
  min-width: 126px !important;
  min-height: 58px !important;
  padding: 0 6px !important;
  border-color: rgba(126, 255, 159, 0.78) !important;
  color: #e8ffd8 !important;
  background: linear-gradient(180deg, rgba(22, 58, 38, 0.96), rgba(6, 24, 20, 0.96)) !important;
  box-shadow: 0 0 14px rgba(75, 255, 124, 0.2), inset 0 0 10px rgba(75, 255, 124, 0.08) !important;
  font-size: 1.16rem !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
  white-space: normal !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status .daifugo-symbol-legend {
  display: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-symbol-legend {
  top: 1152px !important;
  left: 326px !important;
  width: 430px !important;
  min-width: 430px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPassBtn {
  top: 1146px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-hand {
  bottom: 18px !important;
  height: min(940px, 74svh) !important;
  padding: 362px 34px 10px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand {
  height: 690px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selected {
  transform: translateY(-124px) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn {
  bottom: 0 !important;
  height: 66px !important;
  min-height: 66px !important;
}

/* Mobile portrait pass 5: restore symbols and give the hand real vertical room. */
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-bottom-strip,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-hand {
  background: transparent !important;
  box-shadow: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-bottom-strip::before,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-bottom-strip::after,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-hand::before,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-hand::after {
  display: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status .daifugo-symbol-legend {
  position: fixed !important;
  display: grid !important;
  left: 322px !important;
  right: auto !important;
  top: 1142px !important;
  width: 450px !important;
  min-width: 450px !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px 18px !important;
  padding: 12px 18px !important;
  z-index: 64 !important;
  pointer-events: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status .daifugo-symbol-legend-title,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status .daifugo-controller-card-guide {
  display: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status .daifugo-symbol-legend-line {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 2.05rem !important;
  line-height: 1.12 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status .daifugo-symbol-legend-mark {
  font-size: 2.15rem !important;
  line-height: 1 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-hand {
  top: 1168px !important;
  bottom: 70px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 28px 4px !important;
  align-items: flex-end !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  z-index: 58 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand {
  width: 390px !important;
  min-width: 390px !important;
  height: 682px !important;
  margin-right: -22px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.mobile-focus .card,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selected .card,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selectable:hover .card {
  transform: scale(1.72) !important;
  transform-origin: top center !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selected {
  transform: translateY(-112px) !important;
}

/* Mobile portrait pass 6: use the recovered space for larger text and cards. */
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-head,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-name {
  font-size: 2.12rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-rank,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-status,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-count {
  font-size: 1.92rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-lock-title,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-turn-badge {
  font-size: 2.56rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-lock-line,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-lock-empty,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-table-meta {
  font-size: 2.18rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-name,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-rank,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-count,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status-state {
  font-size: 1.94rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-status-toggle-btn {
  font-size: 1.3rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status .daifugo-symbol-legend-line {
  font-size: 2.24rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status .daifugo-symbol-legend-mark {
  font-size: 2.34rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPassBtn {
  font-size: 2.58rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn::after,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn::after {
  font-size: 2.56rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table {
  width: 456px !important;
  min-width: 456px !important;
  height: 646px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card {
  transform: scale(1.92) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand {
  width: 424px !important;
  min-width: 424px !important;
  height: 724px !important;
  margin-right: -18px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.mobile-focus .card,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selected .card,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selectable:hover .card {
  transform: scale(1.86) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selected {
  transform: translateY(-118px) !important;
}

/* Mobile portrait pass 7: lower lower-UI cluster and enlarge cards/buttons. */
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-table {
  top: 540px !important;
  height: 660px !important;
  min-height: 660px !important;
}

html.cc-mobile-portrait .daifugo-table-empty {
  font-size: 2.05rem !important;
  line-height: 1.28 !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  color: rgba(247, 241, 216, 0.94) !important;
  text-align: center !important;
  text-shadow:
    0 4px 12px rgba(0, 0, 0, 0.82),
    0 0 14px rgba(255, 235, 176, 0.16) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table {
  width: 486px !important;
  min-width: 486px !important;
  height: 690px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.table .card {
  transform: scale(2.06) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status {
  top: 1228px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status .daifugo-symbol-legend {
  top: 1252px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPassBtn {
  top: 1248px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-hand {
  top: 1322px !important;
  bottom: 96px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand {
  width: 456px !important;
  min-width: 456px !important;
  height: 778px !important;
  margin-right: -14px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand .card,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.mobile-focus .card,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selected .card,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selectable:hover .card {
  transform: scale(1.98) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.selected {
  transform: translateY(-124px) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn {
  height: 86px !important;
  min-height: 86px !important;
}

/* Mobile portrait pass 8: larger action buttons and compact opponent portraits. */
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn {
  bottom: 34px !important;
  height: 164px !important;
  min-height: 164px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn::after,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn::after {
  font-size: 3rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status .daifugo-symbol-legend {
  left: 304px !important;
  width: 520px !important;
  min-width: 520px !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px 14px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status .daifugo-symbol-legend-line {
  font-size: 2.05rem !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-player-status .daifugo-symbol-legend-mark {
  font-size: 2.14rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-panel.top,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-panel.left,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-panel.right {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-areas: "portrait" "info" !important;
  justify-items: center !important;
  gap: 4px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-portrait.top,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-portrait.left,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-portrait.right {
  width: 174px !important;
  height: 174px !important;
  border-width: 4px !important;
  border-color: rgba(226, 202, 128, 0.72) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-panel.active .daifugo-seat-portrait {
  border-color: rgba(105, 255, 143, 0.98) !important;
  box-shadow:
    0 0 0 4px rgba(78, 255, 127, 0.28),
    0 0 22px rgba(75, 255, 124, 0.48),
    inset 0 0 0 1px rgba(225, 255, 228, 0.22) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-panel.passed .daifugo-seat-portrait {
  border-color: rgba(255, 86, 86, 0.98) !important;
  box-shadow:
    0 0 0 4px rgba(255, 92, 92, 0.28),
    0 0 22px rgba(255, 72, 72, 0.46),
    inset 0 0 0 1px rgba(255, 220, 220, 0.18) !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-info.top,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-info.left,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-info.right {
  width: 174px !important;
  max-width: 174px !important;
  min-height: 42px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  place-items: center !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-head,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-name,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-rank,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-status,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-pass-badge {
  display: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-seat-count {
  display: block !important;
  font-size: 1.92rem !important;
  line-height: 1 !important;
  color: #fff0c8 !important;
  font-weight: 900 !important;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.94), 0 0 7px rgba(255, 230, 160, 0.24) !important;
}

html.cc-mobile-portrait .daifugo-mobile-seat-popover {
  position: fixed;
  z-index: 9999;
  width: 268px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid rgba(226, 202, 128, 0.82);
  background: linear-gradient(180deg, rgba(9, 28, 22, 0.98), rgba(3, 10, 12, 0.98));
  color: #fff0c8;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55), 0 0 20px rgba(216, 180, 86, 0.22);
  pointer-events: none;
}

html.cc-mobile-portrait .daifugo-mobile-seat-popover-name {
  font-size: 1.35rem;
  line-height: 1.2;
}

html.cc-mobile-portrait .daifugo-mobile-seat-popover-rank,
html.cc-mobile-portrait .daifugo-mobile-seat-popover-status,
html.cc-mobile-portrait .daifugo-mobile-seat-popover-count {
  margin-top: 6px;
  font-size: 1.05rem;
  line-height: 1.18;
}

/* Mobile portrait result pass 2: full-screen readable series result. */
html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-result.active {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: 928px !important;
  max-width: 928px !important;
  height: min(1500px, calc(var(--mobile-canvas-height, 1920px) - 260px)) !important;
  max-height: min(1500px, calc(var(--mobile-canvas-height, 1920px) - 260px)) !important;
  transform: translate(-50%, -50%) !important;
  padding: 58px 62px 52px !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto minmax(0, 1fr) auto !important;
  gap: 24px !important;
  overflow: hidden !important;
  z-index: 180 !important;
  border-radius: 30px !important;
  border: 3px solid rgba(230, 196, 95, 0.9) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(82, 126, 58, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(7, 24, 19, 0.98), rgba(2, 8, 10, 0.99)) !important;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(255, 244, 182, 0.12),
    0 0 36px rgba(214, 175, 82, 0.24) !important;
}

html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-result-title {
  font-size: 3.18rem !important;
  line-height: 1.08 !important;
  text-align: center !important;
  letter-spacing: 0.08em !important;
}

html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-result-list {
  min-height: 0 !important;
  overflow-y: auto !important;
  display: grid !important;
  align-content: start !important;
  gap: 14px !important;
  padding-right: 6px !important;
}

html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-result-row {
  grid-template-columns: 112px minmax(0, 1fr) minmax(220px, auto) !important;
  min-height: 78px !important;
  padding: 14px 18px !important;
  gap: 18px !important;
  font-size: 1.9rem !important;
  border-radius: 14px !important;
}

html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-result-row strong {
  font-size: 2rem !important;
}

html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-result-actions {
  position: static !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 28px !important;
  margin: 16px 0 0 !important;
}

html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-result-actions .daifugo-action-btn {
  width: 100% !important;
  min-height: 118px !important;
  height: 118px !important;
  font-size: 2.28rem !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  white-space: normal !important;
}

/* Mobile portrait pass 9: result priority, bigger deal backs, action final tuning. */
html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-seat,
html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-mobile-seat-popover {
  display: none !important;
}

html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-result.active {
  z-index: 10020 !important;
}

html.cc-mobile-portrait .daifugo-screen.result-active .daifugo-board-shell {
  z-index: 10000 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.back-only {
  width: 456px !important;
  min-width: 456px !important;
  height: 778px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand.back-only .daifugo-card-back.hand {
  width: 236px !important;
  height: 344px !important;
  transform: scale(1.9) !important;
  transform-origin: bottom center !important;
  border-radius: 14px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPassBtn {
  left: 852px !important;
  top: 1302px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn {
  bottom: 112px !important;
  height: 226px !important;
  min-height: 226px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn::after,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn::after {
  font-size: 3.42rem !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-hand {
  bottom: 0 !important;
  background: transparent !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-screen-backdrop,
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-board-shell {
  box-shadow: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-bottom-strip {
  background: transparent !important;
  opacity: 1 !important;
}

/* Mobile portrait pass 10: raise hand, remove bottom darkness, enlarge action buttons visibly. */
html.cc-mobile-portrait .daifugo-screen.header-stowed {
  background: #0f5b34 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 380px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 91, 52, 0), rgba(15, 91, 52, 0.98) 42%, rgba(15, 91, 52, 1));
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-hand {
  top: 1248px !important;
  bottom: 182px !important;
  z-index: 70 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-card-slot.hand {
  height: 744px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn {
  top: auto !important;
  bottom: 12px !important;
  height: 182px !important;
  min-height: 182px !important;
  z-index: 240 !important;
  border-width: 2px !important;
  border-radius: 16px !important;
  pointer-events: auto !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn::after,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn::after {
  font-size: 4.1rem !important;
  line-height: 1 !important;
}

/* Mobile portrait pass 11: move action buttons up and make them tall. */
html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-hand {
  top: 1294px !important;
  bottom: 136px !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn {
  top: 1728px !important;
  bottom: auto !important;
  height: 286px !important;
  min-height: 286px !important;
  max-height: none !important;
  padding: 0 18px !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 420 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn::after,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn::after {
  font-size: 4.7rem !important;
  line-height: 1 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn {
  z-index: 80 !important;
  bottom: 0 !important;
  height: 62px !important;
  min-height: 62px !important;
  background: linear-gradient(180deg, rgba(46, 72, 32, 0.9), rgba(8, 26, 18, 0.94)) !important;
}

/* Desktop guard: mobile portrait tuning must never reshape the PC board. */
html.cc-desktop-layout #gameCanvasRoot {
  width: 1920px !important;
  height: 1080px !important;
}

html.cc-desktop-layout body.fixed-canvas-mode .daifugo-screen {
  width: 1920px !important;
  height: 1080px !important;
}

html.cc-desktop-layout .daifugo-screen {
  background: url('material/table.png') center / cover no-repeat !important;
}

html.cc-desktop-layout .daifugo-screen-layout {
  position: relative !important;
  z-index: 1 !important;
  height: 100% !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 10px 16px 360px !important;
}

html.cc-desktop-layout .daifugo-header {
  left: 16px !important;
  right: 16px !important;
  top: 10px !important;
  height: 96px !important;
  min-height: 96px !important;
  display: block !important;
  flex-direction: initial !important;
  align-items: initial !important;
  justify-content: initial !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  padding: 12px 18px !important;
  box-sizing: border-box !important;
}

html.cc-desktop-layout .daifugo-title-block {
  position: absolute !important;
  left: 18px !important;
  top: 14px !important;
  width: 520px !important;
  min-width: 0 !important;
  display: block !important;
  order: 0 !important;
}

html.cc-desktop-layout .daifugo-title {
  font-size: 2.35rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html.cc-desktop-layout .daifugo-subtitle {
  font-size: 1.08rem !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

html.cc-desktop-layout .daifugo-round-indicator {
  position: absolute !important;
  left: 50% !important;
  top: 38px !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  font-size: 1.42rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-align: center !important;
  order: 0 !important;
}

html.cc-desktop-layout .daifugo-header-controls {
  position: absolute !important;
  right: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: auto !important;
  max-width: 880px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  min-width: 0 !important;
  order: 0 !important;
}

html.cc-desktop-layout .daifugo-player-count-label,
html.cc-desktop-layout .daifugo-player-count-select,
html.cc-desktop-layout .daifugo-header-btn {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

html.cc-desktop-layout .daifugo-player-count-select,
html.cc-desktop-layout .daifugo-header-btn {
  min-height: 44px !important;
  height: 44px !important;
}

html.cc-desktop-layout .daifugo-board-shell {
  position: relative !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 188px minmax(0, 1fr) 188px !important;
  grid-template-rows: 168px minmax(0, 1fr) !important;
  gap: 10px 16px !important;
  margin-top: 92px !important;
}

html.cc-desktop-layout .daifugo-screen.header-stowed .daifugo-board-shell {
  margin-top: 12px !important;
}

html.cc-desktop-layout .daifugo-seat {
  position: relative !important;
  display: grid !important;
  align-items: center !important;
  inset: auto !important;
  transform: none !important;
}

html.cc-desktop-layout .daifugo-seat.top {
  grid-column: 2 !important;
  grid-row: 1 !important;
  transform: translateY(-28px) !important;
  z-index: 24 !important;
}

html.cc-desktop-layout .daifugo-seat.side.left {
  grid-column: 1 !important;
  grid-row: 2 !important;
}

html.cc-desktop-layout .daifugo-seat.side.right {
  grid-column: 3 !important;
  grid-row: 2 !important;
}

html.cc-desktop-layout .daifugo-seat-panel {
  display: grid !important;
  gap: 10px !important;
}

html.cc-desktop-layout .daifugo-seat-panel.top {
  display: grid !important;
  grid-template-columns: auto auto !important;
  grid-template-areas:
    "portrait info"
    "fan fan" !important;
  justify-content: center !important;
  align-items: center !important;
  column-gap: 18px !important;
  row-gap: 8px !important;
  position: relative !important;
  z-index: 24 !important;
}

html.cc-desktop-layout .daifugo-seat-panel.left,
html.cc-desktop-layout .daifugo-seat-panel.right {
  justify-items: center !important;
}

html.cc-desktop-layout .daifugo-seat-portrait.top {
  grid-area: portrait !important;
  width: 150px !important;
  height: 150px !important;
  margin-top: 12px !important;
  transform: translateX(150px) !important;
  position: relative !important;
  z-index: 26 !important;
}

html.cc-desktop-layout .daifugo-seat-portrait.left,
html.cc-desktop-layout .daifugo-seat-portrait.right {
  width: 136px !important;
  height: 136px !important;
  position: relative !important;
  z-index: 26 !important;
}

html.cc-desktop-layout .daifugo-seat-info {
  display: grid !important;
  gap: 6px !important;
  width: fit-content !important;
  max-width: 260px !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
}

html.cc-desktop-layout .daifugo-seat-info.top {
  grid-area: info !important;
  align-content: center !important;
  justify-items: start !important;
  min-width: 160px !important;
  transform: translateX(150px) !important;
  position: relative !important;
  z-index: 26 !important;
}

html.cc-desktop-layout .daifugo-seat-info.left,
html.cc-desktop-layout .daifugo-seat-info.right {
  justify-items: center !important;
  justify-self: center !important;
  position: relative !important;
  z-index: 26 !important;
}

html.cc-desktop-layout .daifugo-back-fan.top {
  grid-area: fan !important;
  width: 720px !important;
  height: 122px !important;
  transform: translateY(-48px) !important;
}

html.cc-desktop-layout .daifugo-back-fan.left,
html.cc-desktop-layout .daifugo-back-fan.right {
  width: 120px !important;
  height: 320px !important;
  transform: translateY(-132px) !important;
  z-index: 18 !important;
}

html.cc-desktop-layout .daifugo-lock-panel {
  position: absolute !important;
  left: 304px !important;
  top: 178px !important;
  width: 248px !important;
  z-index: 3 !important;
  display: grid !important;
  gap: 8px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
}

html.cc-desktop-layout .daifugo-table-stage {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: grid !important;
  grid-template-rows: 76px 470px 240px !important;
  justify-items: center !important;
  align-content: start !important;
  height: 786px !important;
  min-height: 786px !important;
  padding: 0 18px 12px !important;
  overflow: visible !important;
}

html.cc-desktop-layout .daifugo-table-header {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-self: start !important;
  justify-self: end !important;
  width: 420px !important;
  margin-bottom: -6px !important;
  transform: translate(88px, -20px) !important;
  align-items: flex-start !important;
}

html.cc-desktop-layout .daifugo-table {
  min-height: 470px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  width: 1120px !important;
  max-width: 1120px !important;
  height: 470px !important;
  padding: 22px 28px !important;
  border-radius: 56px !important;
  background: transparent !important;
  overflow: visible !important;
  transform: translateY(-20px) !important;
  box-shadow: none !important;
}

html.cc-desktop-layout .daifugo-player-status {
  position: absolute !important;
  left: 72px !important;
  top: auto !important;
  bottom: 360px !important;
  transform: none !important;
  z-index: 11 !important;
  min-width: 170px !important;
  display: none !important;
  gap: 6px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
}

html.cc-desktop-layout .daifugo-player-status.active {
  display: grid !important;
}

html.cc-desktop-layout .daifugo-player-status[style*="left"] {
  top: auto !important;
  bottom: 360px !important;
}

html.cc-desktop-layout .daifugo-symbol-legend {
  position: absolute !important;
  left: calc(100% + 12px) !important;
  top: -2px !important;
  z-index: 12 !important;
  display: grid !important;
  gap: 6px !important;
  min-width: 148px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  pointer-events: none !important;
}

html.cc-desktop-layout .daifugo-bottom-strip {
  position: absolute !important;
  left: 1320px !important;
  top: 58% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  justify-content: flex-end !important;
  gap: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  z-index: 22 !important;
}

html.cc-desktop-layout #daifugoPassBtn {
  position: static !important;
  min-width: 158px !important;
  min-height: 56px !important;
  width: auto !important;
  height: auto !important;
  padding: 0 22px !important;
  font-size: 1.26rem !important;
}

html.cc-desktop-layout #daifugoPlayBtn,
html.cc-desktop-layout #daifugoPairBtn {
  position: static !important;
  min-width: 124px !important;
  min-height: 44px !important;
  width: auto !important;
  height: auto !important;
  padding: 0 14px !important;
  font-size: 1.1rem !important;
}

html.cc-desktop-layout .daifugo-hand {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  top: auto !important;
  bottom: 52px !important;
  min-height: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  padding: 148px 220px 20px 12px !important;
  margin-top: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  z-index: 6 !important;
  scrollbar-width: none !important;
}

html.cc-desktop-layout .daifugo-hand.compact-center {
  justify-content: center !important;
  padding-left: 220px !important;
  padding-right: 220px !important;
}

html.cc-desktop-layout .daifugo-card-slot.hand {
  width: 162px !important;
  min-width: 162px !important;
  height: 286px !important;
  margin-right: -20px !important;
}

html.cc-desktop-layout .daifugo-card-slot.table {
  width: 268px !important;
  min-width: 268px !important;
  height: 390px !important;
}

html.cc-desktop-layout .daifugo-card-slot.hand .card {
  transform: scale(0.86) !important;
}

html.cc-desktop-layout .daifugo-card-slot.hand.selectable:hover .card {
  transform: scale(0.96) !important;
}

html.cc-desktop-layout .daifugo-card-slot.hand.selected,
html.cc-desktop-layout .daifugo-card-slot.hand.daifugo-controller-selected {
  transform: translateY(-58px) !important;
  z-index: 90 !important;
}

html.cc-desktop-layout .daifugo-card-slot.hand.selected:hover,
html.cc-desktop-layout .daifugo-card-slot.hand.selected.daifugo-controller-selected {
  transform: translateY(-76px) !important;
  z-index: 96 !important;
}

html.cc-desktop-layout .daifugo-card-slot.hand.selected .card,
html.cc-desktop-layout .daifugo-card-slot.hand.daifugo-controller-selected .card {
  transform: scale(0.96) !important;
}

html.cc-desktop-layout .daifugo-card-slot.hand.selected:hover .card,
html.cc-desktop-layout .daifugo-card-slot.hand.selected.daifugo-controller-selected .card {
  transform: scale(1.04) !important;
}

html.cc-desktop-layout .daifugo-draft-area {
  position: absolute !important;
  left: 50% !important;
  top: 43% !important;
  width: 680px !important;
  height: 410px !important;
  min-height: 410px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 22px !important;
  overflow: visible !important;
  z-index: 80 !important;
  pointer-events: auto !important;
}

html.cc-desktop-layout .daifugo-draft-area.active {
  min-height: 410px !important;
}

html.cc-desktop-layout .daifugo-draft-placeholder {
  font-size: 1.08rem !important;
  opacity: 0.72 !important;
  pointer-events: none !important;
}

html.cc-desktop-layout .daifugo-card-slot.draft-card {
  width: 268px !important;
  min-width: 268px !important;
  height: 390px !important;
  z-index: 86 !important;
}

html.cc-desktop-layout .daifugo-card-slot.draft-card .card {
  transform: scale(1.12) !important;
}

html.cc-desktop-layout .daifugo-card-slot.draft-card:hover {
  transform: translateY(-18px) !important;
  z-index: 92 !important;
}

html.cc-desktop-layout .daifugo-card-slot.draft-card:hover .card {
  transform: scale(1.16) !important;
}

html.cc-desktop-layout .daifugo-card-slot.table .card {
  transform: scale(1.12) !important;
}

html.cc-desktop-layout .daifugo-card-slot .card {
  width: 236px !important;
  height: 344px !important;
  border-radius: 14px !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-cost {
  top: 4px !important;
  left: 7px !important;
  width: 42px !important;
  height: 42px !important;
  padding-right: 0 !important;
  font-size: 1.72rem !important;
  transform: none !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-name {
  top: 6.5px !important;
  left: 57.2px !important;
  right: 60px !important;
  font-size: 1.22rem !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-bp-icon {
  top: 7px !important;
  right: 8px !important;
  width: 36px !important;
  height: 36px !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-bp-letter {
  font-size: 14px !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-image {
  top: 46px !important;
  left: 9px !important;
  right: 9px !important;
  height: 186px !important;
  border-radius: 6px !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-attr-orbs {
  top: 48px !important;
  right: 20px !important;
  gap: 4px !important;
  max-width: 64px !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-attr-orb {
  width: 18px !important;
  height: 18px !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-image-meta {
  font-size: 0.88rem !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-image-lv {
  top: 51px !important;
  left: 20px !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-image-tag {
  top: 212px !important;
  left: 16px !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-image-race {
  top: 212px !important;
  right: 16px !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-effect-panel {
  top: 235px !important;
  left: 15px !important;
  right: 15px !important;
  height: 58px !important;
  padding: 8px !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-effect-line {
  font-size: 0.88rem !important;
  line-height: 1.18 !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-stats {
  left: 14px !important;
  right: 14px !important;
  bottom: 5px !important;
  gap: 6px !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-stats span {
  font-size: 1.34rem !important;
  padding: 7px 0 6px !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-stats span:first-child,
html.cc-desktop-layout .daifugo-card-slot .card-stats span:last-child {
  transform: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPlayBtn,
html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPairBtn {
  top: auto !important;
  bottom: 24px !important;
  height: 286px !important;
  min-height: 286px !important;
  max-height: none !important;
  z-index: 1200 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-bottom-strip {
  z-index: 1100 !important;
  pointer-events: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-action-row {
  z-index: 1101 !important;
  pointer-events: none !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed #daifugoPassBtn {
  z-index: 1200 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

/* Mobile setup scale pass: use the empty lower space by making controls larger. */
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-header-controls {
  top: 405px !important;
  width: 860px !important;
  grid-template-columns: 250px 1fr !important;
  gap: 24px 26px !important;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-player-count-label {
  min-height: 92px !important;
  font-size: 1.72rem !important;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-player-count-select {
  width: 584px !important;
  max-width: 584px !important;
  min-width: 584px !important;
  min-height: 92px !important;
  height: 92px !important;
  padding: 0 74px 0 30px !important;
  font-size: 2.05rem !important;
  border-radius: 10px !important;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-player-count-select option {
  font-size: 1.8rem !important;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-header-btn {
  width: 860px !important;
  min-width: 860px !important;
  min-height: 116px !important;
  height: 116px !important;
  border-radius: 14px !important;
  font-size: 2.38rem !important;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) #daifugoStartBtn {
  margin-top: 42px !important;
}

/* Mobile title scale pass. */
html.cc-mobile-portrait body.daifugo-standalone-body .cc-title-menu {
  top: 620px !important;
  width: 960px !important;
  gap: 46px !important;
}

html.cc-mobile-portrait body.daifugo-standalone-body .cc-title-btn {
  min-height: 156px !important;
  font-size: 2.95rem !important;
  border-radius: 18px !important;
}

html.cc-mobile-portrait .cc-title-subtext {
  top: 1418px !important;
  width: 1040px !important;
  color: #fff1c8 !important;
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif !important;
  font-size: 3.05rem !important;
  line-height: 1.36 !important;
  font-weight: 900 !important;
  letter-spacing: 0.006em !important;
  overflow-wrap: anywhere !important;
  text-shadow:
    0 4px 7px rgba(0, 0, 0, 0.9),
    0 0 1px rgba(255, 241, 200, 0.72) !important;
  -webkit-font-smoothing: subpixel-antialiased !important;
  text-rendering: geometricPrecision !important;
}

html.cc-mobile-portrait .cc-language-select {
  right: 34px !important;
  bottom: 34px !important;
  font-size: 2.42rem !important;
  gap: 26px !important;
}

html.cc-mobile-portrait .cc-language-select select {
  min-width: 470px !important;
  min-height: 124px !important;
  padding: 0 34px !important;
  font-size: 2.42rem !important;
  border-radius: 16px !important;
}

html.cc-mobile-portrait .cc-profile-panel {
  left: 34px !important;
  right: 34px !important;
  top: 1676px !important;
  bottom: auto !important;
  grid-template-columns: 230px 1fr !important;
  gap: 26px !important;
  padding: 24px !important;
  align-items: stretch !important;
  border-radius: 14px !important;
}

html.cc-mobile-portrait .cc-profile-avatar-btn {
  width: 230px !important;
  height: 230px !important;
  align-self: center !important;
  border-radius: 12px !important;
}

html.cc-mobile-portrait .cc-profile-fields {
  display: grid !important;
  grid-template-rows: auto auto auto !important;
  gap: 14px !important;
  min-width: 0 !important;
}

html.cc-mobile-portrait .cc-profile-name-label {
  gap: 6px !important;
}

html.cc-mobile-portrait .cc-profile-name-label,
html.cc-mobile-portrait .cc-profile-avatar-name,
html.cc-mobile-portrait .cc-profile-btn {
  font-size: 2.25rem !important;
}

html.cc-mobile-portrait .cc-profile-name-input {
  height: 76px !important;
  padding: 0 22px !important;
  font-size: 2.32rem !important;
  border-radius: 10px !important;
}

html.cc-mobile-portrait .cc-profile-avatar-name {
  min-height: 44px !important;
  line-height: 1.2 !important;
  font-size: 2.12rem !important;
}

html.cc-mobile-portrait .cc-profile-actions {
  gap: 12px !important;
}

html.cc-mobile-portrait .cc-profile-btn {
  height: 76px !important;
  border-radius: 10px !important;
}

html.cc-mobile-portrait .cc-profile-avatar-panel {
  inset: 52px 44px 58px !important;
  gap: 18px !important;
  padding: 22px 22px 26px !important;
}

html.cc-mobile-portrait .cc-profile-avatar-title {
  font-size: 2.1rem !important;
}

html.cc-mobile-portrait .cc-profile-avatar-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px 6px !important;
  padding: 0 2px 42px !important;
  overflow-x: hidden !important;
}

html.cc-mobile-portrait .cc-profile-avatar-slot {
  min-height: 558px !important;
  padding: 18px 0 14px !important;
  gap: 12px !important;
  border-radius: 14px !important;
  overflow: visible !important;
}

html.cc-mobile-portrait .cc-profile-avatar-slot .card {
  width: 236px !important;
  height: 344px !important;
  transform: scale(1.36) !important;
  transform-origin: top center !important;
  margin: 0 0 130px !important;
  border-radius: 14px !important;
}

html.cc-mobile-portrait .cc-profile-avatar-card-name {
  display: -webkit-box !important;
  width: 94% !important;
  font-size: 1.36rem !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

html.cc-mobile-portrait .cc-profile-avatar-slot .card-name {
  top: 6.5px !important;
  left: 57.2px !important;
  right: 60px !important;
  font-size: 1.22rem !important;
}

html.cc-mobile-portrait .cc-profile-avatar-slot .card-bp-icon {
  top: 7px !important;
  right: 8px !important;
  width: 36px !important;
  height: 36px !important;
}

html.cc-mobile-portrait .cc-profile-avatar-slot .card-bp-letter {
  font-size: 14px !important;
}

html.cc-mobile-portrait .cc-profile-avatar-slot .card-image {
  top: 46px !important;
  left: 9px !important;
  right: 9px !important;
  height: 186px !important;
  border-radius: 6px !important;
}

html.cc-mobile-portrait .cc-profile-avatar-slot .card-image-lv {
  top: 51px !important;
  left: 20px !important;
  font-size: 0.88rem !important;
}

html.cc-mobile-portrait .cc-profile-avatar-slot .card-image-tag {
  top: 212px !important;
  left: 16px !important;
  right: auto !important;
  font-size: 0.88rem !important;
}

html.cc-mobile-portrait .cc-profile-avatar-slot .card-effect-panel {
  top: 235px !important;
  left: 15px !important;
  right: 15px !important;
  height: 58px !important;
  padding: 8px !important;
}

html.cc-mobile-portrait .cc-profile-avatar-slot .card-stats {
  left: 14px !important;
  right: 14px !important;
  bottom: 5px !important;
  gap: 6px !important;
}

html.cc-mobile-portrait .cc-profile-avatar-slot .card-stats span {
  font-size: 1.34rem !important;
  padding: 7px 0 6px !important;
}

html.cc-mobile-portrait .cc-profile-avatar-slot .card-stats span:first-child,
html.cc-mobile-portrait .cc-profile-avatar-slot .card-stats span:last-child {
  transform: none !important;
}

/* Mobile select dropdown pass: keep native option lists inside the viewport. */
html.cc-mobile-portrait .cc-language-select {
  left: 50% !important;
  right: auto !important;
  bottom: 34px !important;
  transform: translateX(-50%) !important;
  font-size: 2.08rem !important;
  gap: 24px !important;
}

html.cc-mobile-portrait .cc-language-select select {
  width: 390px !important;
  min-width: 390px !important;
  max-width: 390px !important;
  min-height: 104px !important;
  height: 104px !important;
  padding: 0 26px !important;
  font-size: 2.08rem !important;
  line-height: 1.15 !important;
}

html.cc-mobile-portrait .cc-language-select select option {
  font-family: 'Noto Sans JP', 'Cinzel', serif !important;
  font-size: 2rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em !important;
  background: #071512 !important;
  color: #f3ead0 !important;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-player-count-select option {
  font-family: 'Noto Sans JP', 'Cinzel', serif !important;
  font-size: 1.65rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em !important;
  background: #071512 !important;
  color: #f3ead0 !important;
}

html.cc-mobile-portrait .cc-mobile-select-menu {
  position: absolute;
  z-index: 50000;
  max-height: 520px;
  overflow-y: auto;
  border: 1px solid rgba(222, 190, 112, 0.72);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(8, 20, 18, 0.98), rgba(3, 12, 10, 0.99));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
}

html.cc-mobile-portrait .cc-mobile-select-option {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-bottom: 1px solid rgba(222, 190, 112, 0.22);
  background: transparent;
  color: #f3ead0;
  font-family: 'Noto Sans JP', 'Cinzel', serif;
  font-size: 1.62rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  touch-action: manipulation;
}

html.cc-mobile-portrait .cc-mobile-select-option:last-child {
  border-bottom: 0;
}

html.cc-mobile-portrait .cc-mobile-select-option.selected {
  background: linear-gradient(180deg, rgba(42, 91, 26, 0.98), rgba(14, 48, 24, 0.99)) !important;
  color: #f6e7b5 !important;
  box-shadow:
    inset 0 0 0 1px rgba(222, 190, 112, 0.34),
    inset 0 0 18px rgba(91, 255, 137, 0.12) !important;
}

html.cc-mobile-portrait .cc-mobile-select-option:active,
html.cc-mobile-portrait .cc-mobile-select-option:focus,
html.cc-mobile-portrait .cc-mobile-select-option:focus-visible {
  background: linear-gradient(180deg, rgba(51, 105, 31, 0.98), rgba(16, 54, 27, 0.99)) !important;
  color: #fff0c6 !important;
  outline: none !important;
  box-shadow:
    inset 0 0 0 1px rgba(222, 190, 112, 0.46),
    inset 0 0 18px rgba(91, 255, 137, 0.14) !important;
}

/* Mobile setup readability pass: larger non-battle controls and help text. */
html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-header-controls {
  top: 382px !important;
  width: 920px !important;
  grid-template-columns: 272px 1fr !important;
  gap: 28px 30px !important;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-player-count-label {
  min-height: 104px !important;
  font-size: 1.98rem !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.055em !important;
  color: rgba(244, 235, 205, 0.94) !important;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-player-count-select {
  width: 618px !important;
  max-width: 618px !important;
  min-width: 618px !important;
  min-height: 104px !important;
  height: 104px !important;
  padding: 0 78px 0 34px !important;
  font-size: 2.34rem !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
  letter-spacing: 0.045em !important;
  border-radius: 14px !important;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-player-count-select option {
  font-size: 2.1rem !important;
  line-height: 1.2 !important;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) .daifugo-header-btn {
  width: 920px !important;
  min-width: 920px !important;
  min-height: 138px !important;
  height: 138px !important;
  border-radius: 18px !important;
  font-size: 2.86rem !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: 0.085em !important;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.82) !important;
}

html.cc-mobile-portrait .daifugo-screen:not(.header-stowed):not(.result-active) #daifugoStartBtn {
  margin-top: 54px !important;
}

html.cc-mobile-portrait .daifugo-help-title {
  font-size: 3.08rem !important;
  font-weight: 900 !important;
}

html.cc-mobile-portrait .daifugo-help-close {
  min-width: 104px !important;
  min-height: 104px !important;
  font-size: 3.25rem !important;
}

html.cc-mobile-portrait .daifugo-help-section-title {
  font-size: 2.42rem !important;
  font-weight: 900 !important;
}

html.cc-mobile-portrait .daifugo-help-section p {
  font-size: 2.18rem !important;
  line-height: 1.62 !important;
  font-weight: 600 !important;
}

/* Mobile final polish: larger custom selects and a reachable BT display toggle. */
html.cc-mobile-portrait .cc-mobile-select-option {
  min-height: 104px !important;
  font-size: 2.12rem !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-status-toggle-btn {
  position: fixed !important;
  left: auto !important;
  right: 32px !important;
  top: 1190px !important;
  width: 238px !important;
  min-width: 238px !important;
  min-height: 76px !important;
  margin: 0 !important;
  padding: 0 16px 0 72px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.42rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  pointer-events: auto !important;
  z-index: 1300 !important;
  border: 2px solid rgba(126, 255, 159, 0.78) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(12, 28, 36, 0.96), rgba(5, 12, 20, 0.98)) !important;
  color: #dffff0 !important;
  box-shadow:
    0 0 0 2px rgba(126, 255, 159, 0.14),
    0 0 22px rgba(75, 255, 124, 0.24),
    inset 0 0 18px rgba(75, 180, 255, 0.08) !important;
  touch-action: manipulation !important;
}

html.cc-mobile-portrait .daifugo-screen.header-stowed .daifugo-status-toggle-btn::before {
  content: "BT";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(126, 210, 255, 0.82);
  background: radial-gradient(circle at 50% 30%, rgba(77, 177, 255, 0.42), rgba(7, 18, 28, 0.96));
  color: #aee7ff;
  font-family: 'Cinzel', serif;
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 0 14px rgba(77, 177, 255, 0.28);
}

/* Mobile title/options/library pass: full-screen dialogs and close-up library browsing. */
html.cc-mobile-portrait .cc-title-logo {
  top: 34px !important;
  width: 1720px !important;
  max-width: 1720px !important;
}

html.cc-mobile-portrait .cc-option-panel {
  width: 980px !important;
  min-height: calc(var(--mobile-canvas-height, 1920px) - 180px) !important;
  padding: 54px 58px 58px !important;
  border-radius: 28px !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  align-content: stretch !important;
  gap: 44px !important;
}

html.cc-mobile-portrait .cc-option-head {
  padding-bottom: 30px !important;
  margin-bottom: 0 !important;
}

html.cc-mobile-portrait .cc-option-title {
  font-size: 3.3rem !important;
  letter-spacing: 0.14em !important;
}

html.cc-mobile-portrait .cc-option-close {
  width: 96px !important;
  height: 96px !important;
  font-size: 3rem !important;
}

html.cc-mobile-portrait .cc-option-body {
  justify-content: center !important;
  gap: 58px !important;
}

html.cc-mobile-portrait .cc-option-row {
  grid-template-columns: 150px 1fr 110px !important;
  gap: 28px !important;
  font-size: 2.35rem !important;
}

html.cc-mobile-portrait .cc-option-row input[type="range"] {
  height: 62px !important;
}

html.cc-mobile-portrait .cc-option-row strong {
  font-size: 2.32rem !important;
}

html.cc-mobile-portrait .cc-option-check {
  gap: 28px !important;
  font-size: 2.35rem !important;
}

html.cc-mobile-portrait .cc-option-check input {
  width: 42px !important;
  height: 42px !important;
}

html.cc-mobile-portrait .cc-option-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 30px !important;
  margin-top: 0 !important;
}

html.cc-mobile-portrait .cc-option-btn {
  min-height: 118px !important;
  font-size: 2.25rem !important;
}

html.cc-mobile-portrait .cc-online-modal {
  z-index: 50030 !important;
}

html.cc-mobile-portrait .cc-online-panel {
  width: 960px !important;
  max-height: calc(var(--mobile-canvas-height, 1920px) - 120px) !important;
  padding: 38px 42px 42px !important;
  border-radius: 24px !important;
  gap: 24px !important;
}

html.cc-mobile-portrait .cc-online-head {
  padding-bottom: 28px !important;
}

html.cc-mobile-portrait .cc-online-title {
  font-size: 3rem !important;
  letter-spacing: 0.1em !important;
}

html.cc-mobile-portrait .cc-online-close {
  width: 92px !important;
  height: 92px !important;
  border-radius: 16px !important;
  font-size: 3rem !important;
}

html.cc-mobile-portrait .cc-online-body {
  gap: 22px !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding-right: 8px !important;
}

html.cc-mobile-portrait .cc-online-section {
  gap: 18px !important;
  padding: 24px !important;
  border-radius: 18px !important;
}

html.cc-mobile-portrait .cc-online-label,
html.cc-mobile-portrait .cc-online-room-label {
  font-size: 1.72rem !important;
  line-height: 1.25 !important;
}

html.cc-mobile-portrait .cc-online-row {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

html.cc-mobile-portrait .cc-online-select,
html.cc-mobile-portrait .cc-online-input {
  min-height: 90px !important;
  border-radius: 16px !important;
  padding: 0 30px !important;
  font-size: 2.18rem !important;
}

html.cc-mobile-portrait .cc-online-btn {
  min-height: 92px !important;
  border-radius: 16px !important;
  font-size: 2.22rem !important;
}

html.cc-mobile-portrait .cc-online-waiting {
  gap: 14px !important;
  padding: 24px !important;
  border-radius: 18px !important;
}

html.cc-mobile-portrait .cc-online-room-code {
  font-size: 4.2rem !important;
  line-height: 1.1 !important;
}

html.cc-mobile-portrait .cc-online-waiting-note {
  min-height: 54px !important;
  font-size: 1.7rem !important;
  line-height: 1.25 !important;
}

html.cc-mobile-portrait .cc-online-start {
  margin-top: 12px !important;
}

html.cc-mobile-portrait .cc-online-room-actions {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

html.cc-mobile-portrait .cc-online-status {
  min-height: 70px !important;
  padding: 18px 24px !important;
  font-size: 1.76rem !important;
  line-height: 1.45 !important;
}

html.cc-mobile-portrait .cc-library-modal,
html.cc-mobile-portrait .cc-library-zoom-modal {
  z-index: 50020 !important;
}

html.cc-mobile-portrait .cc-library-panel {
  inset: 14px 12px 14px 12px !important;
  grid-template-rows: auto 1fr !important;
  gap: 20px !important;
  padding: 24px 18px 28px !important;
  border-radius: 24px !important;
}

html.cc-mobile-portrait .cc-library-head {
  min-height: 104px !important;
  padding: 0 4px 22px !important;
}

html.cc-mobile-portrait .cc-library-title {
  font-size: 3.15rem !important;
}

html.cc-mobile-portrait .cc-library-summary {
  font-size: 1.8rem !important;
}

html.cc-mobile-portrait .cc-library-close,
html.cc-mobile-portrait .cc-library-filter-btn,
html.cc-mobile-portrait .cc-library-filter-close {
  width: 92px !important;
  min-width: 92px !important;
  height: 92px !important;
  min-height: 92px !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 1px solid rgba(222, 190, 112, 0.62) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(28, 49, 42, 0.98), rgba(6, 15, 16, 0.98)) !important;
  color: #f5e8c2 !important;
  font-size: 3rem !important;
  font-weight: 900 !important;
}

html.cc-mobile-portrait .cc-library-filter-btn {
  margin-left: auto !important;
}

html.cc-mobile-portrait .cc-library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px 6px !important;
  padding: 0 2px 42px !important;
}

html.cc-mobile-portrait .cc-library-slot {
  min-height: 520px !important;
  padding: 0 !important;
  border-radius: 14px !important;
  overflow: visible !important;
}

html.cc-mobile-portrait .cc-library-slot .card {
  transform: scale(1.36) !important;
  transform-origin: center !important;
}

html.cc-mobile-portrait .cc-library-card-locked {
  width: 230px !important;
  height: 338px !important;
  font-size: 5.8rem !important;
}

html.cc-mobile-portrait .cc-library-controls {
  position: absolute !important;
  inset: 0 !important;
  z-index: 8 !important;
  display: none !important;
  grid-template-columns: 1fr !important;
  align-content: center !important;
  gap: 28px !important;
  padding: 150px 72px 84px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(55, 105, 56, 0.2), transparent 46%),
    linear-gradient(180deg, rgba(5, 18, 16, 0.98), rgba(1, 7, 9, 0.99)) !important;
  border-radius: 24px !important;
}

html.cc-mobile-portrait .cc-library-modal.filters-open .cc-library-controls {
  display: grid !important;
}

html.cc-mobile-portrait .cc-library-filter-close {
  position: absolute !important;
  right: 42px !important;
  top: 42px !important;
}

html.cc-mobile-portrait .cc-library-search,
html.cc-mobile-portrait .cc-library-select,
html.cc-mobile-portrait .cc-library-owned-filter {
  width: 100% !important;
  min-height: 104px !important;
  border-radius: 16px !important;
  padding: 0 30px !important;
  font-size: 2.2rem !important;
}

html.cc-mobile-portrait .cc-library-owned-filter {
  justify-content: flex-start !important;
  gap: 24px !important;
}

html.cc-mobile-portrait .cc-library-owned-filter input {
  width: 42px !important;
  height: 42px !important;
}

html.cc-mobile-portrait .cc-library-zoom-panel {
  width: 1000px !important;
  min-height: calc(var(--mobile-canvas-height, 1920px) - 58px) !important;
  box-sizing: border-box !important;
  padding: 44px 24px 34px !important;
  border-radius: 26px !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  align-content: stretch !important;
  justify-items: center !important;
  gap: 18px !important;
}

html.cc-mobile-portrait .cc-library-zoom-close {
  display: none !important;
}

html.cc-mobile-portrait .cc-library-zoom-name {
  width: 860px !important;
  max-width: 910px !important;
  font-size: 3.72rem !important;
  line-height: 1.18 !important;
  text-align: center !important;
  justify-self: center !important;
}

html.cc-mobile-portrait .cc-library-zoom-flavor {
  width: 860px !important;
  max-width: 952px !important;
  min-height: 220px !important;
  box-sizing: border-box !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 28px 34px !important;
  font-size: 2.78rem !important;
  line-height: 1.48 !important;
  text-align: center !important;
  justify-self: center !important;
  align-self: center !important;
}

html.cc-mobile-portrait .cc-library-zoom-card {
  width: 952px !important;
  height: 1780px !important;
  align-self: center !important;
  justify-self: center !important;
  overflow: visible !important;
  transform: none !important;
}

html.cc-mobile-portrait .cc-library-zoom-card .card {
  transform: scale(4.45) !important;
  transform-origin: center !important;
}

html.cc-mobile-portrait .cc-library-zoom-card .card-image-lv {
  top: 51px !important;
  left: 20px !important;
  font-size: 0.88rem !important;
  line-height: 1 !important;
}

html.cc-mobile-portrait .cc-library-zoom-card .card-image-tag {
  top: 212px !important;
  left: 16px !important;
  right: auto !important;
  font-size: 0.88rem !important;
  line-height: 1 !important;
  max-width: 96px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}

html.cc-mobile-portrait .cc-library-zoom-card .card-bp-icon {
  top: 7px !important;
  right: 8px !important;
  width: 36px !important;
  height: 36px !important;
}

html.cc-mobile-portrait .cc-library-zoom-card .card-bp-letter {
  font-size: 14px !important;
}

html.cc-mobile-portrait .cc-library-slot .card,
html.cc-mobile-portrait .cc-library-zoom-card .card {
  width: 236px !important;
  height: 344px !important;
  border-radius: 14px !important;
}

html.cc-mobile-portrait .cc-library-slot .card-name,
html.cc-mobile-portrait .cc-library-zoom-card .card-name {
  top: 6.5px !important;
  left: 57.2px !important;
  right: 60px !important;
  font-size: 1.22rem !important;
}

html.cc-mobile-portrait .cc-library-slot .card-bp-icon,
html.cc-mobile-portrait .cc-library-zoom-card .card-bp-icon {
  top: 7px !important;
  right: 8px !important;
  width: 36px !important;
  height: 36px !important;
}

html.cc-mobile-portrait .cc-library-slot .card-bp-letter,
html.cc-mobile-portrait .cc-library-zoom-card .card-bp-letter {
  font-size: 14px !important;
}

html.cc-mobile-portrait .cc-library-slot .card-image,
html.cc-mobile-portrait .cc-library-zoom-card .card-image {
  top: 46px !important;
  left: 9px !important;
  right: 9px !important;
  height: 186px !important;
  border-radius: 6px !important;
}

html.cc-mobile-portrait .cc-library-slot .card-image-lv,
html.cc-mobile-portrait .cc-library-zoom-card .card-image-lv {
  top: 51px !important;
  left: 20px !important;
  font-size: 0.88rem !important;
}

html.cc-mobile-portrait .cc-library-slot .card-image-tag,
html.cc-mobile-portrait .cc-library-zoom-card .card-image-tag {
  top: 212px !important;
  left: 16px !important;
  right: auto !important;
  font-size: 0.88rem !important;
}

html.cc-mobile-portrait .cc-library-slot .card-effect-panel,
html.cc-mobile-portrait .cc-library-zoom-card .card-effect-panel {
  top: 235px !important;
  left: 15px !important;
  right: 15px !important;
  height: 58px !important;
  padding: 8px !important;
}

html.cc-mobile-portrait .cc-library-slot .card-stats,
html.cc-mobile-portrait .cc-library-zoom-card .card-stats {
  left: 14px !important;
  right: 14px !important;
  bottom: 5px !important;
  gap: 6px !important;
}

html.cc-mobile-portrait .cc-library-slot .card-stats span,
html.cc-mobile-portrait .cc-library-zoom-card .card-stats span {
  font-size: 1.34rem !important;
  padding: 7px 0 6px !important;
}

html.cc-mobile-portrait .cc-library-slot .card-stats span:first-child,
html.cc-mobile-portrait .cc-library-zoom-card .card-stats span:first-child,
html.cc-mobile-portrait .cc-library-slot .card-stats span:last-child,
html.cc-mobile-portrait .cc-library-zoom-card .card-stats span:last-child {
  transform: none !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-attr-orbs {
  top: 45px !important;
  right: 15px !important;
  gap: 5px !important;
  max-width: 86px !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-attr-orb {
  width: 24px !important;
  height: 24px !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-attr-orb::after {
  font-size: 0.92rem !important;
  font-weight: 900 !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-image-meta {
  font-size: 1.06rem !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.96) !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-image-lv {
  top: 50px !important;
  left: 17px !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-image-tag {
  top: 208px !important;
  left: 14px !important;
}

html.cc-desktop-layout .daifugo-card-slot .card-image-race {
  top: 208px !important;
  right: 14px !important;
}

html.cc-mobile-portrait .daifugo-screen,
html.cc-mobile-portrait .daifugo-screen * {
  -webkit-font-smoothing: subpixel-antialiased !important;
  text-rendering: optimizeLegibility !important;
}

html.cc-mobile-portrait .daifugo-screen :is(
  .daifugo-title,
  .daifugo-subtitle,
  .daifugo-round-indicator,
  .daifugo-seat-head,
  .daifugo-seat-name,
  .daifugo-seat-rank,
  .daifugo-seat-status,
  .daifugo-seat-count,
  .daifugo-table-meta,
  .daifugo-turn-badge,
  .daifugo-lock-title,
  .daifugo-lock-line,
  .daifugo-lock-empty,
  .daifugo-player-status-name,
  .daifugo-player-status-rank,
  .daifugo-player-status-count,
  .daifugo-player-status-state,
  .daifugo-symbol-legend-title,
  .daifugo-symbol-legend-line,
  .daifugo-action-btn,
  .daifugo-help-title,
  .daifugo-help-section-title,
  .daifugo-help-section p,
  .daifugo-result-title,
  .daifugo-result-row
) {
  font-weight: 800 !important;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.98),
    0 2px 3px rgba(0, 0, 0, 0.78) !important;
}

html.cc-mobile-portrait .daifugo-screen :is(
  .card-name,
  .card-image-meta,
  .card-effect-line,
  .card-stats span,
  .card-bp-letter,
  .card-cost
) {
  font-weight: 900 !important;
  -webkit-text-stroke: 0.01px rgba(0, 0, 0, 0.35) !important;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.98),
    0 2px 3px rgba(0, 0, 0, 0.86) !important;
}

html.cc-desktop-layout .daifugo-screen.result-active .daifugo-result.active {
  position: absolute !important;
  left: 50% !important;
  top: 36% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  z-index: 120 !important;
}

html.cc-mobile-portrait .daifugo-table-meta.player-turn,
html.cc-desktop-layout .daifugo-table-meta.player-turn {
  color: #fff1c8 !important;
  font-size: 1.42rem !important;
  font-weight: 900 !important;
  text-shadow:
    0 0 14px rgba(255, 214, 101, 0.38),
    0 2px 8px rgba(0, 0, 0, 0.56) !important;
}
