.kwordle-mypage-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  width: 100%;
  margin: 40px 0;
}

.kwordle-mypage-layout .kwordle-auth-container {
  width: 100%;
  margin: 0;
}

.kwordle-mypage-icon {
  margin-bottom: 12px;
  font-size: 48px;
}

.kwordle-mypage-welcome {
  margin: 0 0 24px;
  color: #111827;
  font-size: 20px;
}

.kwordle-mypage-welcome strong {
  font-weight: 900;
}

.kwordle-mypage-balance {
  margin-bottom: 24px;
  padding: 24px 20px;
  background: #111827;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.kwordle-mypage-balance-label {
  margin: 0 0 8px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.kwordle-mypage-balance-value {
  margin: 0;
  color: #9dff20;
  font-size: 32px;
  font-weight: 900;
}

.kwordle-mypage-balance-value span {
  color: #6b7280;
  font-size: 20px;
}

.kwordle-mypage-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kwordle-point-history-section {
  width: 100%;
  margin: 0;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.kwordle-point-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.kwordle-point-history-header h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.kwordle-point-history-header span {
  padding: 6px 11px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}

.kwordle-point-history-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.kwordle-point-history-filter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-sizing: border-box;
}

.kwordle-point-history-filter a:hover {
  border-color: #111827;
  background: #ffffff;
  color: #111827;
}

.kwordle-point-history-filter a.is-active {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.kwordle-point-history-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kwordle-point-history-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f3f4f6;
}

.kwordle-point-history-list li:last-child {
  border-bottom: 0;
}

.kwordle-point-history-desc {
  min-width: 0;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.kwordle-point-history-desc small {
  display: inline-block;
  margin-left: 6px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
}

.kwordle-point-history-amount {
  min-width: 84px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f9fafb;
  text-align: right;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 900;
  box-sizing: border-box;
}

.kwordle-point-history-amount.is-plus {
  color: #15803d;
}

.kwordle-point-history-amount.is-minus {
  color: #dc2626;
}

.kwordle-point-history-empty {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 700;
}

.kwordle-point-pagination {
  margin-top: 20px;
  text-align: center;
}

.kwordle-point-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.kwordle-point-pagination a,
.kwordle-point-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-sizing: border-box;
}

.kwordle-point-pagination .current {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.kwordle-point-pagination a:hover {
  border-color: #111827;
  background: #ffffff;
  color: #111827;
}

@media (max-width: 860px) {
  .kwordle-mypage-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 32px 0;
  }
}

@media (max-width: 640px) {
  .kwordle-point-history-section {
    padding: 20px 16px;
  }

  .kwordle-point-history-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .kwordle-point-history-desc small {
    display: block;
    margin: 4px 0 0;
  }
}
