#crossing-container {
  background: var(--bg-open);
}

#crossing-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.cross-flow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.cross-card {
  pointer-events: auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  font-size: 20px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  display: none;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cross-card.is-active {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

.cross-card.is-entering {
  display: flex;
}

.cross-divider {
  width: 0;
  align-self: stretch;
  border-left: 1px dashed var(--text-grey);
  flex-shrink: 0;
}

.cross-divider-v {
  width: 0;
  flex: 1;
  border-left: 1px dashed var(--text-grey);
}

.cross-card--initial {
  flex-direction: row;
  align-items: stretch;
  padding: 0;
}

.cross-btn {
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  position: relative;
  overflow: hidden;
}

.cross-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.7) 50%,
    transparent 80%
  );
  transition: none;
  pointer-events: none;
}

.cross-btn:hover::after {
  animation: shine-sweep 0.5s ease forwards;
}

@keyframes shine-sweep {
  0%   { left: -60%; }
  100% { left: 120%; }
}

.cross-btn-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.cross-card--category {
  flex-direction: row;
  align-items: stretch;
  padding: 24px;
  gap: 0;
}

.cross-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
  position: relative;
  overflow: hidden;
}

.cross-option:hover {
  background: var(--bg-section);
}

.cross-option::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 80%
  );
  pointer-events: none;
}

.cross-option:hover::after {
  animation: shine-sweep 0.5s ease forwards;
}

.cross-option-img {
  width: 100%;
  max-width: 288px;
  height: 180px;
  object-fit: contain;
}

.cross-option-label {
  font-size: 20px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cross-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  flex-shrink: 0;
}

.cross-counter {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}

.cross-card--name {
  flex-direction: row;
  align-items: stretch;
  padding: 0;
}

.cross-name-label {
  font-size: 20px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding: 14px 20px;
  display: flex;
  align-items: center;
}

.cross-card--name > .cross-divider-v {
  flex: 0;
  align-self: stretch;
}

.cross-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
}

.cross-input {
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  border: none;
  outline: none;
  background: transparent;
  width: 180px;
}

.cross-input::placeholder {
  color: var(--text-grey);
}

.cross-submit {
  font-size: 22px;
  color: var(--text-grey);
  cursor: pointer;
  transition: color 0.15s ease;
  line-height: 1;
}

.cross-submit:hover {
  color: var(--text);
}

.cross-step4 {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 340px;
  pointer-events: auto;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cross-step4.is-active {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

.cross-card--hold-hint {
  display: flex !important;
  opacity: 1 !important;
  transform: none !important;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: 20px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cross-hold-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  width: 100%;
}

.cross-hold-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  align-self: stretch;
  padding: 8px 0;
}

.cross-slot {
  flex: 1;
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-section);
}

.cross-slot-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cross-slot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cross-slot-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  padding: 3px 10px;
  line-height: 1.2;
}

.cross-meta {
  width: 100%;
  padding: 16px 20px;
  display: none !important;
  flex-direction: column;
  gap: 10px;
  opacity: 1 !important;
  transform: none !important;
}

.cross-meta.is-visible {
  display: flex !important;
}

.cross-meta-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: baseline;
  gap: 12px;
}

.cross-meta-key {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-grey);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cross-meta-val {
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.cross-card--success {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 18px 32px;
}

.cross-success-text {
  font-size: 20px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.01em;
}

.cross-hold-body.is-merging .cross-slot:first-child {
  animation: slot-merge-left 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.cross-hold-body.is-merging .cross-slot:last-child {
  animation: slot-merge-right 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.cross-hold-body.is-merging .cross-hold-mid {
  animation: fade-out 0.3s ease forwards;
}

@keyframes slot-merge-left {
  0%   { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(50%); opacity: 0; }
}

@keyframes slot-merge-right {
  0%   { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(-50%); opacity: 0; }
}

@keyframes fade-out {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

.cross-hold-progress {
  position: fixed;
  width: 48px;
  height: 48px;
  pointer-events: none;
  z-index: 20;
  transform: translate(-50%, -50%);
}

.cross-hold-progress svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.cross-hold-progress circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
  transition: stroke-dashoffset 3s linear;
}

.cross-hold-progress.is-filling circle {
  stroke-dashoffset: 0;
}
