body {
  background: black;
  color: white;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.main-content {
  width: min(90vw, 960px);
}

.top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.language-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.language-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.language-icon:hover,
.language-icon:focus-within {
  border-color: #27d16f;
  box-shadow: 0 0 0 2px rgba(39, 209, 111, 0.2);
}

.language-select {
  padding: 0.5rem 2.4rem 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.95rem;
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #27d16f 50%),
    linear-gradient(135deg, #27d16f 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 12px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.language-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(39, 209, 111, 0.35);
  border-color: #27d16f;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-title {
  font-size: 3.8rem;
  margin-bottom: 0.5rem;
  text-align: center;
  background: linear-gradient(135deg, #27d16f, #00b85c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.search-box {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.search-box input {
  width: 260px;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid #27d16f;
  background: transparent;
  color: white;
  font-size: 1rem;
}

.search-box button {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #27d16f, #00b85c);
  border: none;
  color: black;
  font-weight: 600;
  cursor: pointer;
}

.search-box button:hover {
  opacity: 0.9;
}

.result-message {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.request-section {
  text-align: center;
  margin-top: 2rem;
}

.request-button {
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #27d16f, #00b85c);
  color: black;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  margin-bottom: 1.2rem;
}

.request-button:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}

.notice {
  font-size: 0.9rem;
  color: #ccc;
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}

.notice h3 {
  margin-bottom: 0.4rem;
  color: #7dff7d;
}

#prefix-text {
  display: inline-block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.scroll-out {
  transform: translateY(-100%);
  opacity: 0;
}

.scroll-in {
  transform: translateY(0);
  opacity: 1;
}

.domain-roller {
  display: inline-block;
  position: relative;
  overflow: hidden;
  line-height: 1em;
  vertical-align: baseline;
  transition: width 0.45s ease;
}

.domain-roller,
.domain-roller .word {
  background: linear-gradient(135deg, #27d16f, #00b85c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.domain-roller .word {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0.12em;
  text-align: left;
  transition: transform 0.45s ease, opacity 0.45s ease;
  opacity: 1;
}

.domain-roller .current {
  transform: translateY(0%);
}

.domain-roller .next {
  transform: translateY(100%);
  opacity: 0;
}

.domain-roller.animating .current {
  transform: translateY(-100%);
  opacity: 0;
}

.domain-roller.animating .next {
  transform: translateY(0%);
  opacity: 1;
}

.domain-roller .size-keeper {
  display: block;
  visibility: hidden;
  white-space: nowrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 90;
}

.modal {
  position: fixed;
  inset: 5% 50% auto;
  transform: translateX(-50%);
  width: min(560px, 88vw);
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(15, 15, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  z-index: 95;
}

.modal[hidden],
.modal-backdrop[hidden] {
  display: none;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.modal-header h2 {
  font-size: 1.6rem;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #7dff7d;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-section h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #7dff7d;
}

.form-section label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.95rem;
}

.form-section input,
.form-section select,
.form-section textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  color: #fff;
  font-size: 1rem;
}

.form-section textarea {
  resize: vertical;
}

.form-section input:focus,
.form-section select:focus,
.form-section textarea:focus {
  outline: none;
  border-color: #27d16f;
  box-shadow: 0 0 0 2px rgba(39, 209, 111, 0.25);
}

.record-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.record-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.record-row label {
  flex: 1 1 220px;
}

.platform-guidance {
  margin-top: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(39, 209, 111, 0.35);
  background: rgba(39, 209, 111, 0.12);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.platform-guidance strong {
  color: #7dff7d;
  font-size: 0.95rem;
}

.platform-guidance p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.remove-record {
  align-self: flex-end;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 125, 125, 0.08);
  color: #ff9d9d;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.remove-record:hover {
  background: rgba(255, 125, 125, 0.16);
  border-color: #ff7d7d;
  color: #ff7d7d;
}

.remove-record[hidden] {
  display: none;
}

.add-record {
  align-self: flex-start;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px dashed rgba(39, 209, 111, 0.45);
  background: rgba(39, 209, 111, 0.1);
  color: #7dff7d;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.add-record:hover,
.add-record:focus-visible {
  border-color: #27d16f;
  background: rgba(39, 209, 111, 0.2);
  color: #27d16f;
}

.terms {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}

.terms span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.email-verification {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

#verification-button {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #27d16f, #00b85c);
  border: none;
  color: black;
  font-weight: 600;
  cursor: pointer;
}

#verification-button:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}

#verification-status {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

#submit-request {
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #27d16f, #00b85c);
  color: black;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

#submit-request:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}

#form-submit-status {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}
