/* ============================================================
   LOSTZONE Manual Tester - Card Styles (Part 2)
   \u30d7\u30ec\u30a4\u30e4\u30fc\u30a8\u30af\u30b9\u30c8\u30e9\u30ab\u30fc\u30c9\u3001\u884c\u52d5\u30ab\u30fc\u30c9\u3001\u30ab\u30fc\u30c9\u30dc\u30fc\u30c0\u30fc\u8272
   ============================================================ */

/* ============================================================
   &#12503;&#12524;&#12452;&#12516;&#12540;&#12456;&#12463;&#12473;&#12488;&#12521;&#12459;&#12540;&#12489;
   ============================================================ */
.player-extra-card {
  position: relative;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  background: #0e1724;
  padding: 6px;
  text-align: center;
  width: 150px;
  flex-shrink: 0;
}

.player-extra-card:hover {
  transform: translateY(-4px) scale(1.2);
  z-index: 10;
  box-shadow: 0 8px 20px rgba(74, 168, 255, 0.3);
}

.player-extra-card.selected {
  border-color: var(--accent);
  background: rgba(74, 168, 255, 0.1);
  box-shadow: 0 0 16px rgba(74, 168, 255, 0.4);
}

.player-extra-card.used {
  opacity: 0.4;
  background: #1a3a1a;
  cursor: not-allowed;
}

.player-extra-card.used:hover {
  transform: none;
  box-shadow: none;
}

.player-extra-card.lost {
  opacity: 0.2;
  background: #1a0000;
  cursor: not-allowed;
  position: relative;
}

.player-extra-card.lost::after {
  content: '\2715';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: var(--danger);
  font-weight: 900;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.player-extra-card.lost:hover {
  transform: none;
  box-shadow: none;
}

.player-extra-image {
  width: 100%;
  aspect-ratio: 55 / 91;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.player-extra-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-extra-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-extra-color {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 999px;
  display: inline-block;
  font-weight: 600;
}

.player-extra-card.ex-character .player-extra-color {
  background: linear-gradient(135deg, #ffd36b, #ffb347);
  color: #000;
}

/* ============================================================
   &#34892;&#21205;&#12459;&#12540;&#12489;&#65288;&#33258;&#21205;&#12469;&#12452;&#12474;&#35519;&#25972;&#12539;&#12507;&#12496;&#12540;&#25313;&#22823;&#23550;&#24540;&#65289;
   ============================================================ */
.action-card {
  position: relative;
  border: 3px solid rgba(74, 168, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  background: #0e1724;
  padding: 8px;
  text-align: center;
  width: 150px;
  flex-shrink: 0;
}

/* \u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306e\u307f\u30db\u30d0\u30fc\u62e1\u5927\u3092\u9069\u7528 */
@media (hover: hover) and (pointer: fine) {
  .action-card:hover {
    transform: translateY(-20px) scale(1.5);
    z-index: 1000;
    box-shadow: 0 12px 32px rgba(74, 168, 255, 0.6);
    border-color: var(--accent);
  }
}

.action-card.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.action-card.disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

/* \u9078\u629e\u72b6\u614b\uff08\u30bf\u30d6\u30ec\u30c3\u30c8\u7528\uff09 - \u62e1\u5927\u30b5\u30a4\u30ba\u30923.0\u500d\u306b */
.action-card.selected {
  background: rgba(74, 168, 255, 0.15);
  border: 4px solid var(--accent);
  box-shadow: 0 0 32px rgba(74, 168, 255, 0.9),
              0 0 64px rgba(74, 168, 255, 0.5);
  z-index: 100;
  transform: scale(3.0);
  transition: transform 0.3s ease-out, border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

/* ============================================================
   \u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u30ab\u30fc\u30c9\u30dc\u30bf\u30f3
   ============================================================ */
.pagination-card-button {
  /* action-card\u306e\u57fa\u672c\u30b9\u30bf\u30a4\u30eb\u3092\u7d99\u627f\u3057\u3001\u9078\u629e\u52d5\u4f5c\u3092\u7121\u52b9\u5316 */
  pointer-events: auto !important;
}

.pagination-card-button:hover {
  /* \u30db\u30d0\u30fc\u6642\u306fselected\u30af\u30e9\u30b9\u306e\u3088\u3046\u306a\u5927\u304d\u306a\u62e1\u5927\u3092\u3055\u305b\u306a\u3044 */
  transform: translateY(-4px) scale(1.05) !important;
  z-index: 10 !important;
}

.pagination-card-button.selected {
  /* \u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u30dc\u30bf\u30f3\u306f\u9078\u629e\u4e0d\u53ef */
  transform: none !important;
}

/* ============================================================
   \u78ba\u8a8d\u30c0\u30a4\u30a2\u30ed\u30b0\uff08\u30bf\u30d6\u30ec\u30c3\u30c8\u7528\uff09
   ============================================================ */
.action-confirm-dialog {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 23, 36, 0.98);
  border: 3px solid var(--accent);
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 10000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8),
              0 0 48px rgba(74, 168, 255, 0.6);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.action-confirm-text {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.action-confirm-buttons {
  display: flex;
  gap: 12px;
}

.action-confirm-btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  min-width: 90px;
  min-height: 48px;
}

.action-confirm-btn-yes {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.action-confirm-btn-yes:hover {
  background: #63b6ff;
  box-shadow: 0 0 16px rgba(74, 168, 255, 0.8);
}

.action-confirm-btn-no {
  background: rgba(255, 92, 124, 0.2);
  color: var(--danger);
  border-color: var(--danger);
}

.action-confirm-btn-no:hover {
  background: rgba(255, 92, 124, 0.4);
  box-shadow: 0 0 16px rgba(255, 92, 124, 0.6);
}

.action-card-image {
  width: 100%;
  aspect-ratio: 55 / 91;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.action-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* \u62e1\u5927\u6642\u306e\u753b\u50cf\u30dc\u30b1\u9632\u6b62 */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
}

.action-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-card-cost {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 3px;
}

.action-card-desc {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
  max-height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ============================================================
   \u30d7\u30ec\u30a4\u30e4\u30fc\u30a8\u30af\u30b9\u30c8\u30e9\u30ab\u30fc\u30c9(\u30b7\u30f3\u30d7\u30eb\u7248\u30fb\u65b0UI\u7528)
   ============================================================ */
.player-extra-card-simple {
  width: 160px;
  height: 224px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.player-extra-card-simple:hover {
  transform: translateY(-8px) scale(1.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 100;
}

.player-extra-card-simple.lost {
  opacity: 0.3;
  filter: grayscale(100%);
  cursor: not-allowed;
}

.player-extra-card-simple.lost:hover {
  transform: none;
}

.player-extra-card-simple.used {
  opacity: 0.5;
  cursor: not-allowed;
}

.player-extra-card-simple.used:hover {
  transform: none;
}

.extra-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

/* \u30ab\u30fc\u30c9\u30dc\u30fc\u30c0\u30fc\u8272 */
.border-red {
  border: 4px solid #ff5c7c;
  box-shadow: 0 0 16px rgba(255, 92, 124, 0.5);
  background: transparent;
}

.border-blue {
  border: 4px solid #4aa8ff;
  box-shadow: 0 0 16px rgba(74, 168, 255, 0.5);
  background: transparent;
}

.border-green {
  border: 4px solid #8bff9b;
  box-shadow: 0 0 16px rgba(139, 255, 155, 0.5);
  background: transparent;
}

.border-ex {
  border: 4px solid #ffd36b;
  box-shadow: 0 0 16px rgba(255, 211, 107, 0.5);
  background: transparent;
}

.border-colorless {
  border: 4px solid #999;
  box-shadow: 0 0 16px rgba(153, 153, 153, 0.5);
  background: transparent;
}

.border-skill {
  border: 4px solid #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.3);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 237, 78, 0.05));
}

.border-quest {
  border: 4px solid #4CAF50;
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.6), 0 0 40px rgba(76, 175, 80, 0.3);
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(139, 195, 74, 0.05));
}

/* ============================================================
   &#12463;&#12456;&#12473;&#12488;&#30906;&#35469;&#12459;&#12540;&#12489;&#65288;&#23567;&#22411;&#12539;&#12508;&#12479;&#12531;&#38918;&#12395;&#34920;&#31034;&#29992;&#65289;
   ============================================================ */
.quest-check-card {
  width: 150px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(139, 195, 74, 0.15));
  border: 4px solid #4CAF50;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.quest-check-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.quest-check-card:hover {
  transform: translateY(-15px) scale(1.3);
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.6);
  border-color: #8bff9b;
}

.quest-check-card.completed {
  background: linear-gradient(135deg, rgba(139, 255, 155, 0.3), rgba(107, 223, 127, 0.25));
  border-color: #8bff9b;
  box-shadow: 0 4px 12px rgba(139, 255, 155, 0.6);
}

.quest-check-icon {
  font-size: 48px;
  margin-bottom: 4px;
}

.quest-check-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin-bottom: 4px;
}

.quest-check-count {
  font-size: 18px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

/* ============================================================
   &#12463;&#12456;&#12473;&#12488;&#12459;&#12540;&#12489;&#65288;&#36890;&#24120;&#34920;&#31034;&#29992;&#65289;
   ============================================================ */
.quest-card {
  width: 90px;
  height: 130px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(139, 195, 74, 0.15));
  border: 4px solid #4CAF50;
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.quest-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
  z-index: 1;
  pointer-events: none;
}

.quest-card:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.6);
  border-color: #8bff9b;
}

.quest-card.completed {
  background: linear-gradient(135deg, rgba(139, 255, 155, 0.3), rgba(107, 223, 127, 0.25));
  border-color: #8bff9b;
  box-shadow: 0 4px 12px rgba(139, 255, 155, 0.6);
}

.quest-card.completed::after {
  content: '\2713';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 20px;
  color: #8bff9b;
  font-weight: 900;
  text-shadow: 0 0 8px rgba(139, 255, 155, 0.8);
}

.quest-card-sv {
  font-size: 18px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
  margin-bottom: 6px;
  z-index: 1;
}

.quest-card-condition {
  font-size: 11px;
  color: var(--ink);
  text-align: center;
  line-height: 1.4;
  font-weight: 600;
  z-index: 1;
}

/* ============================================================
   &#12463;&#12456;&#12473;&#12488;&#12514;&#12540;&#12480;&#12523;&#12473;&#12479;&#12452;&#12523;
   ============================================================ */
.quest-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

.quest-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.quest-modal-content {
  background: linear-gradient(135deg, #0e1724, #1a2332);
  border: 3px solid #4CAF50;
  border-radius: 16px;
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
  box-shadow: 0 0 48px rgba(76, 175, 80, 0.6),
              0 0 96px rgba(76, 175, 80, 0.3);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.quest-modal-header {
  background: rgba(76, 175, 80, 0.15);
  border-bottom: 2px solid #4CAF50;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quest-modal-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  text-shadow: 0 0 12px rgba(76, 175, 80, 0.6);
}

.quest-modal-close {
  background: rgba(255, 92, 124, 0.2);
  border: 2px solid var(--danger);
  color: var(--danger);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.quest-modal-close:hover {
  background: rgba(255, 92, 124, 0.4);
  box-shadow: 0 0 16px rgba(255, 92, 124, 0.6);
  transform: scale(1.1);
}

.quest-modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(85vh - 100px);
}

.quest-modal-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
}

.no-quests-message {
  text-align: center;
  font-size: 18px;
  color: var(--muted);
  padding: 40px 20px;
  font-weight: 600;
}

/* &#12514;&#12540;&#12480;&#12523;&#20869;&#12398;&#12463;&#12456;&#12473;&#12488;&#12459;&#12540;&#12489; */
.quest-card-modal {
  width: 300px;
  height: 435px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(139, 195, 74, 0.15));
  border: 4px solid #4CAF50;
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

.quest-card-modal-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.6s;
  -webkit-transition: -webkit-transform 0.6s;
}

.quest-card-modal.flipped .quest-card-modal-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.quest-card-modal-front,
.quest-card-modal-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.quest-card-modal-back {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.quest-card-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
  z-index: 1;
  pointer-events: none;
}

.quest-card-modal:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 32px rgba(76, 175, 80, 0.6);
  border-color: #8bff9b;
}

.quest-card-modal.completed {
  background: linear-gradient(135deg, rgba(139, 255, 155, 0.3), rgba(107, 223, 127, 0.25));
  border-color: #8bff9b;
  box-shadow: 0 6px 16px rgba(139, 255, 155, 0.6);
}

.quest-card-modal.completed::after {
  content: '\2713';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 42px;
  color: #8bff9b;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(139, 255, 155, 0.8);
  z-index: 1;
}

.quest-card-modal-sv {
  font-size: 36px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
  margin-bottom: 12px;
  z-index: 1;
}

.quest-card-modal-condition {
  font-size: 24px;
  color: var(--ink);
  text-align: center;
  line-height: 1.5;
  font-weight: 600;
  z-index: 1;
}

/* ============================================================
   &#12456;&#12531;&#12487;&#12451;&#12531;&#12464;&#12459;&#12540;&#12489;
   ============================================================ */
.ending-card {
  width: 300px;
  height: 450px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 237, 78, 0.1));
  border: 4px solid #ffd700;
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.ending-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
  animation: shimmer 4s infinite;
  z-index: 1;
  pointer-events: none;
}

.ending-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.7);
  border-color: #ffed4e;
}

.ending-card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  z-index: 0;
}

.ending-card-type {
  text-align: center;
  margin-bottom: 16px;
  z-index: 1;
}

.ending-card-type-label {
  font-size: 48px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 16px rgba(255, 215, 0, 0.9);
  display: block;
  margin-bottom: 8px;
}

.ending-card-conditions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1;
}

.ending-card-condition {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.ending-card-condition.met {
  background: rgba(139, 255, 155, 0.2);
  border-color: #8bff9b;
}

.ending-status-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  flex-shrink: 0;
}

.ending-status-badge.met {
  background: #8bff9b;
  color: #000;
  box-shadow: 0 0 8px rgba(139, 255, 155, 0.6);
}

.ending-status-badge.unmet {
  background: rgba(255, 92, 124, 0.3);
  border: 2px solid var(--danger);
  color: var(--danger);
}

.ending-card-condition-text {
  font-size: 20px;
  color: var(--ink);
  line-height: 1.4;
  font-weight: 600;
  flex: 1;
  padding: 8px 6px;
  max-height: 120px;
  overflow-y: auto;
}

/* ============================================================
   \u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30c7\u30b6\u30a4\u30f3 - iPad Pro\u5c02\u7528 (1024px\uff5e1366px)
   ============================================================ */
@media (min-width: 1024px) and (max-width: 1366px) {
  /* \u30d7\u30ec\u30a4\u30e4\u30fc\u30a8\u30af\u30b9\u30c8\u30e9\u30ab\u30fc\u30c9\u3092\u7d04\u534a\u5206\u306e\u30b5\u30a4\u30ba\u306b */
  .player-extra-card {
    width: 113px;
  }

  .player-extra-card:hover {
    transform: translateY(-2px) scale(1.15);
  }

  .player-extra-name {
    font-size: 8px;
  }

  .player-extra-color {
    font-size: 7px;
    padding: 1px 4px;
  }

  /* \u884c\u52d5\u30ab\u30fc\u30c9\u3092\u30d7\u30ec\u30a4\u30e4\u30fc\u30ab\u30fc\u30c9\u3068\u540c\u3058\u30b5\u30a4\u30ba\u306b */
  .action-card {
    width: 113px;
    padding: 6px;
  }

  .action-card:hover {
    transform: translateY(-4px) scale(1.2);
  }

  /* \u9078\u629e\u6642\u306e\u30b9\u30bf\u30a4\u30eb - \u4e0b\u90e8\u8d77\u70b9\u3067\u4e0a\u306b\u62e1\u5927 */
  .action-card.selected {
    transform: scale(2.5);
    transform-origin: bottom center;
    border: 4px solid var(--accent);
    background: rgba(74, 168, 255, 0.15);
    box-shadow: 0 0 32px rgba(74, 168, 255, 0.9),
                0 0 64px rgba(74, 168, 255, 0.5);
  }

  /* \u9078\u629e\u72b6\u614b\u3067\u30db\u30d0\u30fc\u3057\u3066\u3082\u540c\u3058 */
  .action-card.selected:hover {
    transform: scale(2.5) !important;
    transform-origin: bottom center !important;
  }

  /* \u30c6\u30ad\u30b9\u30c8\u30b5\u30a4\u30ba\u8abf\u6574 */
  .action-card-title {
    font-size: 9px;
  }

  .action-card-cost {
    font-size: 8px;
  }

  .action-card-desc {
    font-size: 7px;
    max-height: 20px;
  }
  
  /* \u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u30ab\u30fc\u30c9\u30dc\u30bf\u30f3 */
  .pagination-card-button {
    width: 113px;
    font-size: 20px !important;
  }

  /* \u30b7\u30f3\u30d7\u30eb\u7248\u30a8\u30af\u30b9\u30c8\u30e9\u30ab\u30fc\u30c9 */
  .player-extra-card-simple {
    width: 120px;
    height: 168px;
  }

  .player-extra-card-simple:hover {
    transform: translateY(-8px) scale(1.5);
  }

  /* \u30af\u30a8\u30b9\u30c8\u78ba\u8a8d\u30ab\u30fc\u30c9 */
  .quest-check-card {
    width: 113px;
  }

  .quest-check-card:hover {
    transform: translateY(-20px) scale(1.5);
  }

  .quest-check-icon {
    font-size: 36px;
  }

  .quest-check-title {
    font-size: 11px;
  }

  .quest-check-count {
    font-size: 15px;
  }

  /* \u30af\u30a8\u30b9\u30c8\u30ab\u30fc\u30c9 */
  .quest-card {
    width: 45px;
    height: 65px;
  }

  .quest-card-sv {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .quest-card-condition {
    font-size: 7px;
  }

  /* \u30a8\u30f3\u30c7\u30a3\u30f3\u30b0\u30ab\u30fc\u30c9 */
  .ending-card {
    width: 120px;
    height: 180px;
  }

  .ending-card-type-label {
    font-size: 30px;
  }

  .ending-card-condition-text {
    font-size: 12px;
    padding: 4px;
    max-height: 60px;
  }

  /* \u65bd\u8a2d\u30b0\u30ea\u30c3\u30c9 */
  .facility-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
  }

  /* \u30af\u30a8\u30b9\u30c8\u30e2\u30fc\u30c0\u30eb */
  .quest-modal-content {
    max-width: 90%;
    max-height: 90%;
  }

  .quest-modal-title {
    font-size: 27px;
  }

  .quest-modal-close {
    font-size: 24px;
    width: 32px;
    height: 32px;
  }

  .quest-modal-header {
    padding: 14px 18px;
  }

  .quest-modal-body {
    padding: 18px;
  }

  .quest-card-modal {
    width: 120px;
    height: 180px;
  }

  .quest-card-modal-sv {
    font-size: 24px;
  }

  .quest-card-modal-condition {
    font-size: 18px;
  }

  .quest-modal-cards-container {
    gap: 21px;
  }
  
  .ending-status-badge {
    width: 18px;
    height: 18px;
    font-size: 12px;
  }
}


/* ============================================================
   \u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30c7\u30b6\u30a4\u30f3 - \u30bf\u30d6\u30ec\u30c3\u30c8\u6a2a\u753b\u9762 (1024px\u4ee5\u4e0b)
   ============================================================ */
@media (max-width: 1024px) {
  /* \u30d7\u30ec\u30a4\u30e4\u30fc\u30a8\u30af\u30b9\u30c8\u30e9\u30ab\u30fc\u30c9\u306e\u30b5\u30a4\u30ba\u8abf\u6574 */
  .player-extra-card {
    width: 133px;
  }

  .player-extra-card:hover {
    transform: translateY(-3px) scale(1.1);
  }

  .player-extra-name {
    font-size: 9px;
  }

  .player-extra-color {
    font-size: 8px;
    padding: 2px 5px;
  }

  /* \u884c\u52d5\u30ab\u30fc\u30c9\u306e\u30b5\u30a4\u30ba\u8abf\u6574 */
  .action-card {
  width: 133px;
  }

  /* \u30bf\u30d6\u30ec\u30c3\u30c8\u3067\u306f\u30db\u30d0\u30fc\u62e1\u5927\u3092\u7121\u52b9\u5316 */
  .action-card:hover:not(.disabled) {
    transform: none;
    box-shadow: none;
  }
  
  /* \u9078\u629e\u6642\u306e\u30b9\u30bf\u30a4\u30eb - \u4e0b\u90e8\u8d77\u70b9\u3067\u4e0a\u306b\u62e1\u5927 */
  .action-card.selected {
    transform: scale(2.8);
    transform-origin: bottom center;
    border: 4px solid var(--accent);
    background: rgba(74, 168, 255, 0.15);
    box-shadow: 0 0 32px rgba(74, 168, 255, 0.9),
                0 0 64px rgba(74, 168, 255, 0.5);
  }
  
  .action-card.selected:hover {
    transform: scale(2.8) !important;
    transform-origin: bottom center !important;
  }

  .action-card-title {
    font-size: 11px;
  }

  .action-card-cost {
    font-size: 10px;
  }

  .action-card-desc {
    font-size: 9px;
    max-height: 26px;
  }
  
  /* \u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u30ab\u30fc\u30c9\u30dc\u30bf\u30f3 */
  .pagination-card-button {
    width: 133px;
    font-size: 22px !important;
  }

  /* \u30b7\u30f3\u30d7\u30eb\u7248\u30a8\u30af\u30b9\u30c8\u30e9\u30ab\u30fc\u30c9 */
  .player-extra-card-simple {
    width: 133px;
    height: 186px;
  }

  .player-extra-card-simple:hover {
    transform: translateY(-6px) scale(1.3);
  }

  /* \u30af\u30a8\u30b9\u30c8\u78ba\u8a8d\u30ab\u30fc\u30c9 */
  .quest-check-card {
    width: 133px;
  }

  .quest-check-card:hover {
    transform: translateY(-15px) scale(1.3);
  }

  .quest-check-icon {
    font-size: 40px;
  }

  .quest-check-title {
    font-size: 12px;
  }

  .quest-check-count {
    font-size: 16px;
  }

  /* \u30af\u30a8\u30b9\u30c8\u30ab\u30fc\u30c9 */
  .quest-card {
    width: 90px;
    height: 130px;
  }

  .quest-card-sv {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .quest-card-condition {
    font-size: 9px;
  }
  
  .quest-modal-content {
    max-width: 95%;
    max-height: 95%;
  }

  .quest-modal-title {
    font-size: 30px;
  }

  .quest-modal-close {
    font-size: 28px;
    width: 36px;
    height: 36px;
  }

  .quest-modal-header {
    padding: 16px 20px;
  }

  .quest-modal-body {
    padding: 20px;
  }
  
  .quest-card-modal {
    width: 240px;
    height: 360px;
  }

  .quest-card-modal-sv {
    font-size: 30px;
  }

  .quest-card-modal-condition {
    font-size: 21px;
  }
  
  .quest-modal-cards-container {
    gap: 24px;
  }

  /* \u30a8\u30f3\u30c7\u30a3\u30f3\u30b0\u30ab\u30fc\u30c9 */
  .ending-card {
    width: 240px;
    height: 360px;
  }

  .ending-card-type-label {
    font-size: 42px;
  }

  .ending-card-condition-text {
    font-size: 15px;
    padding: 6px 5px;
  }
  
  .ending-status-badge {
    width: 27px;
    height: 27px;
    font-size: 18px;
  }
}

/* ============================================================
   \u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30c7\u30b6\u30a4\u30f3 - \u30b9\u30de\u30db\u6a2a\u753b\u9762\u5c02\u7528 (768px\u4ee5\u4e0b & landscape)
   ============================================================ */
@media (max-width: 768px) and (orientation: landscape) {
  /* \u6a2a\u753b\u9762\u3067\u306f\u9ad8\u3055\u7bc0\u7d04\u306e\u305f\u3081\u3001\u30db\u30d0\u30fc\u62e1\u5927\u3092\u5236\u9650 */
  .player-extra-card:hover {
    transform: translateY(-2px) scale(1.08);
  }

  /* \u884c\u52d5\u30ab\u30fc\u30c9\u306e\u30db\u30d0\u30fc\u62e1\u5927\u3092\u7121\u52b9\u5316 */
  .action-card:hover:not(.disabled) {
    transform: none;
    box-shadow: none;
  }

  .player-extra-card-simple:hover {
    transform: translateY(-4px) scale(1.2);
  }

  .quest-check-card:hover {
    transform: translateY(-10px) scale(1.2);
  }

  .quest-card:hover {
    transform: translateY(-3px) scale(1.03);
  }

  /* \u30af\u30a8\u30b9\u30c8\u30e2\u30fc\u30c0\u30eb\u306e\u8abf\u6574 */
  .quest-modal-header {
    padding: 12px 16px;
  }

  .quest-modal-body {
    padding: 16px;
  }

  .quest-modal-title {
    font-size: 27px;
  }
}

/* ============================================================
   \u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30c7\u30b6\u30a4\u30f3 - \u5c0f\u578b\u30b9\u30de\u30db (480px\u4ee5\u4e0b)
   ============================================================ */
@media (max-width: 480px) {
  /* \u30d7\u30ec\u30a4\u30e4\u30fc\u30a8\u30af\u30b9\u30c8\u30e9\u30ab\u30fc\u30c9\u306e\u30b5\u30a4\u30ba\u8abf\u6574 */
  .player-extra-card {
    width: 100px;
  }

  .player-extra-card:hover {
    transform: translateY(-2px) scale(1.1);
  }

  /* \u884c\u52d5\u30ab\u30fc\u30c9\u306e\u30b5\u30a4\u30ba\u8abf\u6574\uff088\u679a\u4e26\u3079\u308b\u305f\u308150px\u306b\u7e2e\u5c0f\uff09 */
  .action-card {
    width: 50px;
  }

  /* \u30bf\u30d6\u30ec\u30c3\u30c8\u3067\u306f\u30db\u30d0\u30fc\u62e1\u5927\u3092\u7121\u52b9\u5316 */
  .action-card:hover:not(.disabled) {
    transform: none;
    box-shadow: none;
  }

  /* \u30b7\u30f3\u30d7\u30eb\u7248\u30a8\u30af\u30b9\u30c8\u30e9\u30ab\u30fc\u30c9 */
  .player-extra-card-simple {
    width: 110px;
    height: 154px;
  }

  .player-extra-card-simple:hover {
    transform: translateY(-5px) scale(1.25);
  }

  /* \u30af\u30a8\u30b9\u30c8\u78ba\u8a8d\u30ab\u30fc\u30c9 */
  .quest-check-card {
    width: 100px;
  }

  .quest-check-card:hover {
    transform: translateY(-12px) scale(1.25);
  }

  .quest-check-icon {
    font-size: 36px;
  }

  .quest-check-title {
    font-size: 11px;
  }

  .quest-check-count {
    font-size: 15px;
  }

  /* \u30af\u30a8\u30b9\u30c8\u30ab\u30fc\u30c9 */
  .quest-card {
    width: 75px;
    height: 108px;
  }

  .quest-card-sv {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .quest-card-condition {
    font-size: 8px;
  }

  /* \u30a8\u30f3\u30c7\u30a3\u30f3\u30b0\u30ab\u30fc\u30c9 */
  .ending-card {
    width: 210px;
    height: 315px;
  }

  .ending-card-type-label {
    font-size: 36px;
  }

  .ending-card-condition-text {
    font-size: 14px;
  }

  /* \u30e2\u30fc\u30c0\u30eb\u8abf\u6574 */
  .quest-modal-title {
    font-size: 27px;
  }

  .quest-modal-close {
    font-size: 24px;
    width: 32px;
    height: 32px;
  }

  .quest-card-modal {
    width: 210px;
    height: 315px;
  }

  .quest-card-modal-sv {
    font-size: 27px;
  }

  .quest-card-modal-condition {
    font-size: 20px;
  }
  
  .ending-status-badge {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }
}

/* ============================================================
   \u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30c7\u30b6\u30a4\u30f3 - \u8d85\u5c0f\u578b\u30b9\u30de\u30db (360px\u4ee5\u4e0b)
   ============================================================ */
@media (max-width: 360px) {
  /* \u30d7\u30ec\u30a4\u30e4\u30fc\u30a8\u30af\u30b9\u30c8\u30e9\u30ab\u30fc\u30c9\u306e\u30b5\u30a4\u30ba\u8abf\u6574 */
  .player-extra-card {
    width: 90px;
  }

  .player-extra-card:hover {
    transform: translateY(-2px) scale(1.08);
  }

  .player-extra-name {
    font-size: 8px;
  }

  .player-extra-color {
    font-size: 7px;
    padding: 1px 3px;
  }

  /* \u884c\u52d5\u30ab\u30fc\u30c9\u306e\u30b5\u30a4\u30ba\u8abf\u6574\uff088\u679a\u4e26\u3079\u308b\u305f\u308135px\u306b\u7e2e\u5c0f\uff09 */
  .action-card {
    width: 35px;
  }

  /* \u30bf\u30d6\u30ec\u30c3\u30c8\u3067\u306f\u30db\u30d0\u30fc\u62e1\u5927\u3092\u7121\u52b9\u5316 */
  .action-card:hover:not(.disabled) {
    transform: none;
    box-shadow: none;
  }

  .action-card-title {
    font-size: 10px;
  }

  .action-card-cost {
    font-size: 9px;
  }

  .action-card-desc {
    font-size: 8px;
    max-height: 22px;
  }

  /* \u30b7\u30f3\u30d7\u30eb\u7248\u30a8\u30af\u30b9\u30c8\u30e9\u30ab\u30fc\u30c9 */
  .player-extra-card-simple {
    width: 100px;
    height: 140px;
  }

  .player-extra-card-simple:hover {
    transform: translateY(-4px) scale(1.2);
  }

  /* \u30af\u30a8\u30b9\u30c8\u78ba\u8a8d\u30ab\u30fc\u30c9 */
  .quest-check-card {
    width: 90px;
  }

  .quest-check-card:hover {
    transform: translateY(-10px) scale(1.2);
  }

  .quest-check-icon {
    font-size: 32px;
  }

  .quest-check-title {
    font-size: 10px;
  }

  .quest-check-count {
    font-size: 14px;
  }

  /* \u30af\u30a8\u30b9\u30c8\u30ab\u30fc\u30c9 */
  .quest-card {
    width: 70px;
    height: 100px;
  }

  .quest-card-sv {
    font-size: 13px;
  }

  .quest-card-condition {
    font-size: 7px;
  }

  /* \u30a8\u30f3\u30c7\u30a3\u30f3\u30b0\u30ab\u30fc\u30c9 */
  .ending-card {
    width: 180px;
    height: 270px;
  }

  .ending-card-type-label {
    font-size: 30px;
  }

  .ending-card-condition-text {
    font-size: 12px;
    padding: 4px;
  }

  .ending-status-badge {
    width: 20px;
    height: 20px;
    font-size: 14px;
  }

  /* \u30e2\u30fc\u30c0\u30eb\u8abf\u6574 */
  .quest-modal-header {
    padding: 12px 16px;
  }

  .quest-modal-body {
    padding: 16px;
  }

  .quest-modal-title {
    font-size: 24px;
  }

  .quest-modal-close {
    font-size: 20px;
    width: 28px;
    height: 28px;
  }

  .quest-card-modal {
    width: 180px;
    height: 270px;
  }

  .quest-card-modal-sv {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .quest-card-modal-condition {
    font-size: 17px;
  }

  .quest-modal-cards-container {
    gap: 18px;
  }

  .facility-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }
}
