/* ==========================================================================
   THE MISSING PIECE - OFFICIAL GAME THEME & 3D UI SYSTEM
   ========================================================================== */

:root {
  --color-page-bg: #160F25;
  --color-canvas-dark: #0A0611;
  --color-header: #49307B;
  --color-panel: #2B1D4D;
  --color-section: #35245F;
  --color-section-shadow: #21153C;
  --color-deep-shadow: #0A0611;
  --color-border: #8068B4;
  --color-subtle-border: #685393;
  --color-raised-border: #584675;
  
  --btn-green-top: #63BD68;
  --btn-green-bottom: #2F8B50;
  --btn-green-border: #A6DEA9;
  --btn-green-shadow: #133D25;

  --color-text-primary: #FFF7E9;
  --color-text-secondary: #C9BED9;
  --color-gold: #D2AA5B;
  --color-gold-light: #FFF0C2;
  --color-sage-accent: #78B87A;

  --radius-panel: 14px;
  --radius-control: 10px;
  --radius-compact: 8px;

  --font-game: 'Tilt Warp', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-text: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-page-bg);
  color: var(--color-text-primary);
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.canvas-ambient-top {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 380px;
  background: radial-gradient(circle, rgba(73, 48, 123, 0.35) 0%, rgba(22, 15, 37, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.canvas-ambient-bottom {
  position: fixed;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle, rgba(47, 139, 80, 0.15) 0%, rgba(22, 15, 37, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.game-page-container {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-header {
  text-align: center;
  margin-bottom: 32px;
  width: 100%;
}

.brand-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.game-hero-logo {
  max-width: 130px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
  border-radius: var(--radius-panel);
}

.game-headline {
  font-family: var(--font-game);
  font-size: 38px;
  font-weight: 900;
  color: var(--color-text-primary);
  letter-spacing: 0.8px;
  text-shadow: 0 4px 0 var(--color-canvas-dark), 0 8px 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 6px;
}

.game-subhead {
  font-size: 15px;
  color: var(--color-text-secondary);
  font-weight: 500;
  margin-bottom: 28px;
}

/* 3D Tab Switcher */
.game-tab-bar {
  display: flex;
  background-color: var(--color-section-shadow);
  border: 1.5px solid var(--color-raised-border);
  border-radius: var(--radius-panel);
  padding: 6px;
  box-shadow: 0 5px 0 var(--color-canvas-dark), 0 8px 20px rgba(0, 0, 0, 0.4);
  gap: 8px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.game-tab-btn {
  flex: 1;
  background: linear-gradient(180deg, #513888 0%, #35245F 100%);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: 12px 10px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--color-section-shadow);
  transition: var(--transition-fast);
  position: relative;
  outline: none;
}

.game-tab-btn .tab-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.game-tab-btn .tab-icon {
  font-size: 15px;
}

.game-tab-btn .tab-text {
  font-family: var(--font-game);
  font-size: 14px;
  font-weight: 800;
  color: var(--color-text-secondary);
  letter-spacing: 0.3px;
}

.game-tab-btn:hover {
  background: linear-gradient(180deg, #60439E 0%, #3F2B70 100%);
  border-color: #9C83D4;
}

.game-tab-btn:hover .tab-text {
  color: var(--color-text-primary);
}

.game-tab-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--color-section-shadow);
}

.game-tab-btn.active {
  background: linear-gradient(180deg, var(--btn-green-top) 0%, var(--btn-green-bottom) 100%);
  border: 2px solid var(--btn-green-border);
  box-shadow: 0 4px 0 var(--btn-green-shadow);
}

.game-tab-btn.active .tab-text {
  color: var(--color-text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.game-tab-btn.active:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--btn-green-shadow);
}

/* Main Panel */
.game-main-panel {
  width: 100%;
  background: linear-gradient(180deg, #32225B 0%, #251843 100%);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-panel);
  padding: 36px 32px;
  box-shadow: 0 6px 0 var(--color-deep-shadow), 0 14px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 40px;
}

.game-tab-content {
  display: none;
  animation: panelFade 0.25s ease-out;
}

.game-tab-content.active {
  display: block;
}

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

.panel-section-header {
  border-bottom: 1.5px solid var(--color-subtle-border);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.badge-status {
  display: inline-block;
  font-family: var(--font-game);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-sage-accent);
  background: rgba(120, 184, 122, 0.15);
  border: 1px solid rgba(120, 184, 122, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-compact);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-game);
  font-size: 28px;
  color: var(--color-text-primary);
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.section-intro {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.panel-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.game-section-card {
  background: linear-gradient(180deg, #3D2A6E 0%, #2F1F54 100%);
  border: 1.5px solid var(--color-subtle-border);
  border-radius: var(--radius-control);
  padding: 22px 24px;
  box-shadow: 0 4px 0 var(--color-section-shadow);
  transition: var(--transition-fast);
}

.card-title {
  font-family: var(--font-game);
  font-size: 19px;
  color: var(--color-gold-light);
  font-weight: 800;
  letter-spacing: 0.4px;
  margin-bottom: 12px;
}

.game-section-card p {
  color: var(--color-text-secondary);
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.game-section-card p:last-child {
  margin-bottom: 0;
}

.game-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.game-bullet-list li {
  position: relative;
  padding-left: 22px;
  color: var(--color-text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
}

.game-bullet-list li::before {
  content: '■';
  position: absolute;
  left: 4px;
  top: 1px;
  color: var(--color-gold);
  font-size: 9px;
}

.game-bullet-list strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.account-deletion-box {
  background: rgba(22, 15, 37, 0.6);
  border: 1.5px dashed var(--color-subtle-border);
  border-radius: var(--radius-control);
  padding: 20px;
  margin-top: 18px;
  text-align: center;
}

.deletion-badge {
  display: inline-block;
  font-family: var(--font-game);
  font-size: 13px;
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.account-deletion-box p {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: 18px;
}

.btn-center-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ==========================================================================
   PREMIUM GAME FORM STYLING
   ========================================================================== */

.game-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(18, 12, 31, 0.6);
  border: 1.5px solid var(--color-raised-border);
  border-radius: var(--radius-panel);
  padding: 22px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-label {
  font-family: var(--font-game);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-gold-light);
  letter-spacing: 0.4px;
}

.game-input {
  width: 100%;
  background: #1C1233;
  border: 1.5px solid var(--color-subtle-border);
  border-radius: var(--radius-compact);
  padding: 13px 16px;
  color: var(--color-text-primary);
  font-family: var(--font-text);
  font-size: 14.5px;
  outline: none;
  transition: var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.game-input:focus {
  border-color: var(--btn-green-border);
  box-shadow: 0 0 0 3px rgba(99, 189, 104, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.3);
  background: #23163F;
}

.game-select {
  cursor: pointer;
}

.game-select option {
  background-color: #1C1233;
  color: var(--color-text-primary);
  padding: 10px;
}

.checkbox-group {
  margin-top: 4px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  user-select: none;
}

.checkbox-container input[type="checkbox"] {
  accent-color: var(--btn-green-top);
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

/* 3D Action Button */
.game-action-btn {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
}

.game-action-btn .btn-top-layer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 30px;
  background: linear-gradient(180deg, var(--btn-green-top) 0%, var(--btn-green-bottom) 100%);
  border: 2px solid var(--btn-green-border);
  border-radius: var(--radius-panel);
  box-shadow: 0 5px 0 var(--btn-green-shadow), 0 8px 16px rgba(0, 0, 0, 0.4);
  transition: var(--transition-fast);
}

.game-action-btn .btn-label {
  font-family: var(--font-game);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: 0.4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.game-action-btn:hover .btn-top-layer {
  filter: brightness(1.06);
}

.game-action-btn:active .btn-top-layer {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--btn-green-shadow), 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   3D GAME THEME MODAL ALERT DIALOG
   ========================================================================== */

.game-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 6, 17, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.2s ease-out;
}

.game-modal-window {
  background: linear-gradient(180deg, #3D2A6E 0%, #251843 100%);
  border: 2.5px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 10px 0 var(--color-deep-shadow), 0 24px 50px rgba(0, 0, 0, 0.8);
  max-width: 440px;
  width: 100%;
  padding: 32px 26px 26px;
  text-align: center;
  animation: modalBounceIn 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-icon-bubble {
  font-size: 46px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.modal-header-title {
  font-family: var(--font-game);
  font-size: 22px;
  color: var(--color-gold-light);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.modal-body-text {
  color: var(--color-text-primary);
  font-size: 14.5px;
  line-height: 1.7;
  font-family: var(--font-text);
}

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

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

/* Footer */
.game-footer {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.studio-logo-box {
  margin-bottom: 6px;
}

.studio-logo {
  max-width: 100px;
  height: auto;
  opacity: 0.85;
  transition: var(--transition-fast);
}

.studio-logo:hover {
  opacity: 1;
}

.copyright-line {
  color: var(--color-text-secondary);
  font-size: 13.5px;
}

.studio-title {
  font-family: var(--font-game);
  font-size: 14px;
  color: var(--color-gold);
  letter-spacing: 1px;
}

@media (max-width: 640px) {
  .game-page-container {
    padding: 24px 14px 50px;
  }

  .game-headline {
    font-size: 28px;
  }

  .game-main-panel {
    padding: 22px 16px;
  }

  .game-tab-bar {
    gap: 4px;
  }

  .game-tab-btn {
    padding: 10px 4px;
  }

  .game-tab-btn .tab-icon {
    font-size: 13px;
  }

  .game-tab-btn .tab-text {
    font-size: 11px;
    letter-spacing: 0;
  }

  .section-title {
    font-size: 22px;
  }

  .game-section-card {
    padding: 18px 16px;
  }

  .game-action-btn .btn-top-layer {
    padding: 10px 18px;
  }

  .game-action-btn .btn-label {
    font-size: 12px;
    white-space: normal;
    word-break: break-all;
  }
}
