/* ==========================================
   Start Screen Styles (Vertical Format)
   ========================================== */

.start-screen {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    135deg,
    rgba(47, 41, 41, 0.95) 0%,
    rgba(71, 113, 76, 0.9) 50%,
    rgba(47, 41, 41, 0.95) 100%
  );
  animation: fadeIn 0.5s ease-out;
  overflow: hidden;
}

/* Language Selector on Start Screen */
.start-screen__language-selector {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  padding: 0.35rem 0.5rem;
  background: rgba(47, 41, 41, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.start-screen__language-selector:hover {
  background: rgba(47, 41, 41, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.start-screen__language-selector:focus {
  outline: none;
  border-color: #71CFAF;
  box-shadow: 0 0 0 2px rgba(113, 207, 175, 0.3);
}

.start-screen__language-selector option {
  background: #2f2929;
  color: white;
  font-size: 1.2rem;
}
#start-screen-language{
  width: auto;
}
@media (min-width: 481px) {
  .start-screen {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
  }
}

.start-screen.hidden {
  display: none;
}

.start-screen__background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 1;
  background: #000;
}

.start-screen__portal-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(4px);
  opacity: 0.8;
}

.start-screen__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  animation: slideUp 0.8s ease-out 0.3s both;
}

.start-screen__logo {
  width: clamp(120px, 25vw, 200px);
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.4));
  border-radius: 20px;
  animation: pulse 2s ease-in-out infinite;
}

.start-screen__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--color-accent-strong);
  margin: 0 0 0.5rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.start-screen__subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--color-text-on-dark);
  margin: 0 0 3rem;
  opacity: 0.9;
}

.start-screen__buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 320px;
  margin: 0 auto;
}

.start-screen__auth {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 2px dashed var(--color-accent);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--color-text-on-dark);
}

.start-screen__auth-status {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.start-screen__auth-status strong {
  color: var(--color-accent-strong);
  margin-left: 0.35rem;
}

.start-screen__button {
  font-family: "Platypi", serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.start-screen__button--primary {
  background: linear-gradient(135deg, var(--color-accent-strong), var(--color-accent));
  color: var(--color-bg-dark);
  box-shadow: 0 6px 20px rgba(167, 216, 60, 0.4);
}

.start-screen__button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(167, 216, 60, 0.6);
}

.start-screen__button--primary:active {
  transform: translateY(0);
}

.start-screen__button--secondary {
  background: transparent;
  color: var(--color-text-on-dark);
  border: 2px solid var(--color-accent);
  box-shadow: 0 4px 12px rgba(113, 207, 175, 0.2);
}

.start-screen__button--secondary:hover {
  background: rgba(113, 207, 175, 0.1);
  border-color: var(--color-accent-strong);
  transform: translateY(-2px);
}

.start-screen__footer {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
}

.start-screen__footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.start-screen__footer-link {
  font-size: 0.8rem;
  color: #aaa;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 400;
}

.start-screen__footer-link:hover {
  text-decoration: underline;
  color: #333333;
}

.start-screen__footer-separator {
  color: #000000;
  font-size: 0.8rem;
  opacity: 0.7;
}

.start-screen__consent {
  color: #ffffff;
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 0 1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.start-screen__consent .start-screen__footer-link {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================
   Visual Novel Styles (Vertical Format)
   ========================================== */

.visual-novel {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  background: #000;
  animation: fadeIn 0.4s ease-out;
  overflow: hidden;
}

@media (min-width: 481px) {
  .visual-novel {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
  }
}

.visual-novel.visual-novel--map {
  background: transparent;
  pointer-events: none;
  z-index: 25;
}

.visual-novel.visual-novel--map .visual-novel__background,
.visual-novel.visual-novel--map .visual-novel__characters {
  display: none;
}

.visual-novel.visual-novel--map .visual-novel__text-panel,
.visual-novel.visual-novel--map .visual-novel__navigation {
  pointer-events: auto;
}

.visual-novel.visual-novel--map .visual-novel__text-panel {
  background: linear-gradient(
    180deg,
    rgba(9, 12, 17, 0.9) 0%,
    rgba(9, 12, 17, 0.95) 70%,
    rgba(9, 12, 17, 0.97) 100%
  );
  max-height: 30vh;
  overflow-y: auto;
}

.visual-novel.visual-novel--map .visual-novel__top-controls {
  display: none;
}

.visual-novel.hidden {
  display: none;
}

/* Background Layer - Full Screen */
.visual-novel__background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.visual-novel__background-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Character Layer - 70% of screen (top) */
.visual-novel__characters {
  position: relative;
  z-index: 2;
  height: 70vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 5vw;
  pointer-events: none;
}

.visual-novel__character {
  position: absolute;
  bottom: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.visual-novel__character.active {
  opacity: 1;
  transform: translateY(0);
}

.visual-novel__character.speaking {
  filter: brightness(1.1);
}

.visual-novel__character:not(.speaking) {
  filter: brightness(0.6);
}

.visual-novel__character--left {
  left: 5%;
}

.visual-novel__character--center {
  left: 50%;
  transform: translateX(-50%) translateY(20px);
}

.visual-novel__character--center.active {
  transform: translateX(-50%) translateY(0);
}

.visual-novel__character--right {
  right: 5%;
}

.visual-novel__character-img {
  max-height: 95%;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

/* Text Panel - 30% of screen (bottom) */
.visual-novel__text-panel {
  position: relative;
  z-index: 3;
  height: 30vh;
  background: linear-gradient(
    to top,
    rgba(47, 41, 41, 0.95) 0%,
    rgba(47, 41, 41, 0.92) 50%,
    rgba(47, 41, 41, 0.85) 100%
  );
  backdrop-filter: blur(8px);
  border-top: 3px solid var(--color-accent);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  animation: slideUpPanel 0.5s ease-out;
}

/* Expanded text panel when content overflows */
.visual-novel__text-panel.visual-novel__text-panel--expanded {
  height: 40vh;
}

.visual-novel__name-plate {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-deep));
  color: var(--color-bg-dark);
  padding: 0.5rem 1.5rem;
  border-radius: 8px 8px 0 0;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: -3px;
  align-self: flex-start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 120px;
  text-align: center;
}

.visual-novel__text-container {
  flex: 1;
  background: rgba(253, 251, 238, 0.98);
  border-radius: 0 12px 12px 12px;
  padding: 1.2rem;
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
  min-height: 60px;
}

.visual-novel__text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
  white-space: pre-wrap;
}

.visual-novel__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

/* Compact choices to improve fit when text is long */
.visual-novel__choices.visual-novel__choices--compact {
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.visual-novel__choice {
  font-family: "Platypi", serif;
  font-size: 0.95rem;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-deep));
  color: var(--color-bg-dark);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  box-shadow: 0 3px 10px rgba(113, 207, 175, 0.3);
}

.visual-novel__choice.visual-novel__choice--compact {
  font-size: 0.85rem;
  padding: 0.6rem 0.9rem;
}

.visual-novel__choice:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 14px rgba(113, 207, 175, 0.5);
}

.visual-novel__choice:active {
  transform: translateX(4px);
}

.visual-novel__choice.selected {
  background: linear-gradient(135deg, var(--color-warm), var(--color-earth));
  box-shadow: 0 4px 14px rgba(239, 158, 41, 0.5);
}

.visual-novel__choice.visited {
  background: linear-gradient(135deg, #4a5568, #2d3748);
  opacity: 0.7;
}

.visual-novel__choice.visited::after {
  content: ' ✓';
  margin-left: 0.5rem;
}

/* Navigation Controls */
.visual-novel__navigation {
  position: absolute;
  bottom: calc(30vh + 1rem);
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.visual-novel__nav-button {
  pointer-events: auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(113, 207, 175, 0.9);
  color: var(--color-bg-dark);
  border: 2px solid var(--color-accent-strong);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.visual-novel__nav-button:hover {
  background: var(--color-accent-strong);
  transform: scale(1.1);
}

.visual-novel__nav-button:active {
  transform: scale(0.95);
}

.visual-novel__nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.visual-novel__nav-button.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Top Controls */
.visual-novel__top-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  display: flex;
  gap: 0.5rem;
}

.visual-novel__skip,
.visual-novel__menu {
  padding: 0.5rem 1rem;
  background: rgba(47, 41, 41, 0.8);
  color: var(--color-text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-family: "Platypi", serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.visual-novel__skip:hover,
.visual-novel__menu:hover {
  background: rgba(47, 41, 41, 0.95);
  border-color: var(--color-accent);
}

.visual-novel__menu {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Reward Popup */
.visual-novel__reward {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  animation: rewardPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.visual-novel__reward-content {
  background: linear-gradient(135deg, var(--color-warm), var(--color-accent-strong));
  color: var(--color-bg-dark);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(239, 158, 41, 0.6);
  border: 3px solid var(--color-accent-strong);
  text-align: center;
  min-width: 280px;
}

.visual-novel__reward-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: pulse 1s ease-in-out infinite;
}

.visual-novel__reward-text {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   Portal Animation Styles (Vertical Format)
   ========================================== */

.portal-animation {
  position: fixed;
  inset: 0;
  z-index: 2800;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  animation: fadeIn 0.3s ease-out;
}

.portal-animation.hidden {
  display: none;
}

.portal-animation__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================
   Map Tutorial Overlay (keeps map interactive)
   ========================================== */

.map-tutorial-overlay {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2300;
  pointer-events: none;
}

.map-tutorial-overlay.hidden {
  display: none;
}

.map-tutorial-overlay__card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  max-width: min(460px, 90vw);
  background: rgba(16, 24, 33, 0.95);
  border: 1px solid rgba(113, 207, 175, 0.5);
  border-radius: 14px;
  color: #f7f9fc;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.map-tutorial-overlay__text {
  margin: 0;
  line-height: 1.45;
  font-size: 1rem;
}

.map-tutorial-overlay__button {
  margin-left: auto;
  padding: 10px 14px;
  background: linear-gradient(135deg, #9ae6b4, #62c29d);
  color: #0c1a10;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(98, 194, 157, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.map-tutorial-overlay__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(98, 194, 157, 0.45);
}

.map-tutorial-overlay__button:active {
  transform: translateY(0);
}

/* ==========================================
   Animations
   ========================================== */

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUpPanel {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes rewardPop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ==========================================
   Responsive Adjustments (Vertical Priority)
   ========================================== */

@media (max-width: 600px) {
  .visual-novel__text-panel {
    padding: 0.8rem;
  }

  .visual-novel__text-container {
    padding: 1rem;
  }

  .visual-novel__text {
    font-size: 1rem;
  }


  .visual-novel__choice {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
  }

  .visual-novel__nav-button {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .visual-novel__reward-content {
    padding: 1.5rem;
    min-width: 240px;
  }

  .visual-novel__reward-icon {
    font-size: 3rem;
  }

  .visual-novel__reward-text {
    font-size: 1.1rem;
  }
}

/* Landscape orientation warning (game designed for portrait) */
@media (orientation: landscape) and (max-height: 600px) {
  .visual-novel__characters {
    height: 60vh;
  }

  .visual-novel__text-panel {
    height: 40vh;
  }

  .visual-novel__navigation {
    bottom: calc(40vh + 0.5rem);
  }
}
/* ==========================================
   Character Creation Styles
   ========================================== */

.character-creation-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    rgba(47, 41, 41, 0.95) 0%,
    rgba(71, 113, 76, 0.9) 50%,
    rgba(47, 41, 41, 0.95) 100%
  );
  z-index: 100;
  animation: fadeIn 0.5s ease-out;
}

.character-creation-form {
  background: rgba(30, 30, 30, 0.9);
  border: 2px solid rgba(113, 180, 95, 0.5);
  border-radius: 12px;
  padding: 2rem;
  max-width: min(460px, 90vw);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.5s ease-out;
}

.character-creation-form h2 {
  color: #71b45f;
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: #aaa;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  background: rgba(50, 50, 50, 0.8);
  border: 1px solid rgba(113, 180, 95, 0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input::placeholder {
  color: #666;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #71b45f;
  box-shadow: 0 0 8px rgba(113, 180, 95, 0.3);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.roles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.role-option {
  padding: 1rem;
  background: rgba(50, 50, 50, 0.6);
  border: 2px solid rgba(113, 180, 95, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.role-option:hover {
  border-color: #71b45f;
  background: rgba(50, 50, 50, 0.8);
}

.role-option.selected {
  background: rgba(113, 180, 95, 0.2);
  border-color: #71b45f;
  box-shadow: 0 0 12px rgba(113, 180, 95, 0.3);
}

.role-name {
  color: #71b45f;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.role-desc {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Appearance selection */
.appearance-preview {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.avatar-display {
  width: 180px;
  height: 300px;
  border: 2px solid rgba(113, 180, 95, 0.5);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(50, 50, 50, 0.5);
}

.avatar-display img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.appearance-options {
  margin: 1.5rem 0;
}

.skin-options,
.hair-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 0.75rem;
}

.skin-btn,
.hair-btn {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(113, 180, 95, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(50, 50, 50, 0.6);
}

.skin-btn:hover,
.hair-btn:hover {
  border-color: #71b45f;
}

.skin-btn.selected,
.hair-btn.selected {
  border-color: #71b45f;
  box-shadow: 0 0 12px rgba(113, 180, 95, 0.5);
  background: rgba(113, 180, 95, 0.2);
}

/* Skin color buttons */
.skin-btn[data-skin="light"] {
  background: linear-gradient(135deg, rgba(245, 225, 195, 0.8), rgba(245, 200, 165, 0.8));
}

.skin-btn[data-skin="medium"] {
  background: linear-gradient(135deg, rgba(200, 140, 90, 0.8), rgba(180, 110, 60, 0.8));
}

.skin-btn[data-skin="dark"] {
  background: linear-gradient(135deg, rgba(100, 70, 50, 0.8), rgba(80, 50, 30, 0.8));
}

/* Hair color buttons */
.hair-btn[data-hair="brown"] {
  background: linear-gradient(135deg, rgba(139, 90, 43, 0.8), rgba(101, 67, 33, 0.8));
}

.hair-btn[data-hair="black"] {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(10, 10, 10, 0.9));
}

.hair-btn[data-hair="blonde"] {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.8), rgba(255, 165, 0, 0.8));
}

.hair-btn[data-hair="red"] {
  background: linear-gradient(135deg, rgba(220, 80, 50, 0.8), rgba(180, 50, 30, 0.8));
}

/* Email verification */
.email-message {
  color: #aaa;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.email-display {
  background: rgba(50, 50, 50, 0.6);
  border: 1px solid rgba(113, 180, 95, 0.3);
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #71b45f;
  font-size: 0.95rem;
}

.email-status {
  margin-top: 1rem;
  padding: 0.75rem;
  text-align: center;
  border-radius: 6px;
  color: #71b45f;
  min-height: 1rem;
}

.email-status.error {
  background: rgba(220, 50, 50, 0.2);
  color: #ff8080;
  border: 1px solid rgba(220, 50, 50, 0.5);
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.form-actions button {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #71b45f 0%, #5a9650 100%);
  color: white;
  margin-top: 1rem;
  width: 100%;
  padding: 0.85rem;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(113, 180, 95, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: rgba(113, 180, 95, 0.15);
  color: #71b45f;
  border: 1px solid #71b45f;
}

.btn-secondary:hover {
  background: rgba(113, 180, 95, 0.25);
  box-shadow: 0 4px 12px rgba(113, 180, 95, 0.2);
}

/* Mobile responsive */
@media (max-width: 600px) {
  .character-creation-form {
    padding: 1.5rem;
    border-radius: 8px;
  }

  .character-creation-form h2 {
    font-size: 1.3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .roles-grid {
    gap: 0.75rem;
  }

  .role-option {
    padding: 0.75rem;
  }

  .role-name {
    font-size: 0.95rem;
  }

  .role-desc {
    font-size: 0.85rem;
  }

  .avatar-display {
    width: 140px;
    height: 200px;
  }

  .skin-options,
  .hair-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .skin-btn,
  .hair-btn {
    width: 50px;
    height: 50px;
  }
}

/* PWA Install Prompt Styles */
.pwa-install-prompt {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.pwa-install-prompt.hidden {
  display: none;
}

.pwa-install-prompt__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.pwa-install-prompt__content {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #2d4a3e 0%, #1f3530 100%);
  border: 2px solid #71CFAF;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  max-width: 90%;
  width: 400px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(113, 207, 175, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pwa-install-prompt__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(113, 207, 175, 0.4);
}

.pwa-install-prompt__title {
  color: #71CFAF;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pwa-install-prompt__description {
  color: #dfe8e4;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
  opacity: 0.9;
}

.pwa-install-prompt__actions {
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
}

.pwa-install-prompt__button {
  border: none;
  border-radius: 8px;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.pwa-install-prompt__button--primary {
  background: linear-gradient(135deg, #71CFAF 0%, #5ab89a 100%);
  color: #1f3530;
  box-shadow: 0 4px 12px rgba(113, 207, 175, 0.3);
}

.pwa-install-prompt__button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(113, 207, 175, 0.4);
}

.pwa-install-prompt__button--primary:active {
  transform: translateY(0);
}

.pwa-install-prompt__button--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #dfe8e4;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pwa-install-prompt__button--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 480px) {
  .pwa-install-prompt__content {
    max-width: 95%;
    padding: 1.5rem 1.25rem;
  }

  .pwa-install-prompt__icon {
    width: 64px;
    height: 64px;
  }

  .pwa-install-prompt__title {
    font-size: 1.2rem;
  }

  .pwa-install-prompt__description {
    font-size: 0.875rem;
  }
}
