
html,
body {
  min-height: 100%;
}

:root {
  --bg: #0b1220;
  --card: #0f1724;
  --accent: #ffb730;
  --muted: #9aa6b2;
}

* {
  box-sizing: border-box;
  font-family: "Play", system-ui, Arial, sans-serif;
}

body {
  margin: 0;
  color: #e6eef6;
  min-height: 100dvh;
  position: relative;
  z-index: 0;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(180deg, rgba(7, 14, 26, 0.42), rgba(7, 14, 26, 0.58)), url("../image/background.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: translateZ(0);
  will-change: transform;
}

/* Für WebKit-Browser wie Chrome, Vivaldi, Safari */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
    background-image: linear-gradient(
        135deg,
        #222 25%,
        #111 25%,
        #111 50%,
        #222 50%,
        #222 75%,
        #111 75%,
        #111 100%
    );
    background-size: 5px 5px;

  border-left: 1px solid #444;
}

::-webkit-scrollbar-thumb {
  background-color: #333;
  border-left: 1px solid #444;
  border-bottom: 1px solid #444;
}

/* Utilities used by index.php */
.text-left {
  text-align: left;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.border-top {
  border-top: 1px solid #444;
}

.border-bottom {
  border-bottom: 1px solid #444;
}

.bg-stripes {
  background-image: linear-gradient(
    135deg,
    #222 25%,
    #111 25%,
    #111 50%,
    #222 50%,
    #222 75%,
    #111 75%,
    #111 100%
  );
  background-size: 5px 5px;
}

.flex {
  display: flex;
}

.index-shell {
  width: 1200px;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.78);
}

header {
  border-left: 1px solid #444;
  border-right: 1px solid #444;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-image: linear-gradient(135deg, #222 25%, #111 25%, #111 50%, #222 50%, #222 75%, #111 75%, #111 100%);
  background-size: 5px 5px;
  border-bottom: 1px solid #444;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

header img {
  height: 44px;
}

.header-actions {
  display: flex;
}

.forum-button {
  margin-right: 1rem;
}

.container {
  height: calc(100vh - 112px);
  overflow: auto;
  width: 100%;
  border-left: 1px solid #444;
  border-right: 1px solid #444;
  background: linear-gradient(180deg, #0b1622, rgba(0, 0, 0, 0.8));
  backdrop-filter: blur(5px);
  margin: 0 !important;
}

.hero {
  display: grid;
  grid-template-columns: 75% 1fr;
  align-items: center;
  height: 100%;
  overflow-y: scroll;
}

.hero-left {
  padding: 30px;
  height: 100%;
  border-right: 1px solid #444;
}

.hero h1 {
  font-size: 36px;
  margin: 0 0 12px;
}

.hero p {
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

.hero li {
  color: var(--muted);
  line-height: 1.5;
}

.btn {
  text-align: center;
  width: 125px;
  text-decoration: none;
  background: var(--accent);
  color: #333;
  padding: 11px 18px;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}

.secondary {
  text-align: center;
  width: 125px;
  text-decoration: none;
  background: #333;
  color: #ffb730;
  padding: 11px 18px;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}

.hero-right {
  height: 100%;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  margin: 8px 0;
  border-radius: 0.25rem;
  border: 1px solid #444;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.error {
  color: #ffb4b4;
  font-size: 14px;
  margin: 8px 0;
}

.global-notice {
  padding: 0.6rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 13px;
  line-height: 1.45;
}

.global-notice b {
  color: inherit;
}

.global-notice.warning {
  border: 1px solid rgba(255, 183, 48, 0.45);
  background: rgba(255, 183, 48, 0.09);
  color: #ffd17d;
}

.global-notice.info {
  border: 1px solid rgba(140, 188, 255, 0.45);
  background: rgba(140, 188, 255, 0.10);
  color: #b9d8ff;
}

.global-notice.danger {
  border: 1px solid rgba(236, 126, 126, 0.45);
  background: rgba(236, 126, 126, 0.10);
  color: #ffb6b6;
}

.global-notice.success {
  border: 1px solid rgba(107, 206, 137, 0.45);
  background: rgba(107, 206, 137, 0.10);
  color: #b5f0c3;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 28px;
  margin-top: 28px;
}

.shot {
  background: linear-gradient(180deg, #0b1622, rgba(0, 0, 0, 0.7));
  backdrop-filter: blur(5px);
  padding: 12px;
  border: 1px solid #444;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 1);
}

.shot img {
  width: 100%;
  height: 125px;
  object-fit: cover;
  border-radius: 0.25rem;
  cursor: pointer;
}

.shot h4 {
  margin: 10px 0 0;
  font-size: 14px;
}

.shot-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.captcha-wrap {
  margin-top: 8px;
}

.captcha-label {
  font-size: 13px;
  color: var(--muted);
}

.captcha-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.captcha-image {
  height: 50px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.captcha-input {
  flex: 1;
  height: 46px;
}

.btn-block {
  width: 100%;
}

.register-button {
  margin-top: 12px;
}

.register-success {
  text-align: center;
  padding: 18px;
}

.btn-inline {
  display: inline-block;
}

.success-login-link {
  margin-top: 8px;
}

.hs-row {
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  border-bottom: 1px dashed #444;
}

.hs-rank {
  width: 34px;
  color: var(--muted);
}

.hs-name {
  flex: 1;
  padding: 0 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hs-alliance-tag {
  color: var(--muted);
}

.footer {
  border-left: 1px solid #444;
  border-right: 1px solid #444;
  padding: 0.5rem;
  background-image: linear-gradient(135deg, #222 25%, #111 25%, #111 50%, #222 50%, #222 75%, #111 75%, #111 100%);
  background-size: 5px 5px;
  color: #ffb730;
  text-align: center;
  font-size: 12px;
  border-top: 1px solid #444;
}

.footer-inner {
  display: flex;
  justify-content: center;
}

.footer-copy {
  color: var(--muted);
  margin-left: 0.5rem;
}

.footer-link {
  color: #ffb730;
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: underline;
}

.footer-sep {
  color: var(--muted);
  margin: 0 0.35rem;
}

.lightbox-modal {
  backdrop-filter: blur(5px);
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 0.25rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: solid 1px #444;
  transform: translateY(8px) scale(0.985);
  opacity: 0;
}

.lightbox-modal.is-open {
  display: flex;
}

.lightbox-modal.lightbox-fade-enter {
  animation: indexLightboxOverlayIn 220ms ease forwards;
}

.lightbox-modal.lightbox-fade-enter .lightbox-image {
  animation: indexLightboxPanelIn 220ms ease forwards;
}

.lightbox-modal.lightbox-fade-leave {
  animation: indexLightboxOverlayOut 180ms ease forwards;
}

.lightbox-modal.lightbox-fade-leave .lightbox-image {
  animation: indexLightboxPanelOut 180ms ease forwards;
}

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

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

@keyframes indexLightboxPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .lightbox-modal.lightbox-fade-enter,
  .lightbox-modal.lightbox-fade-leave,
  .lightbox-modal.lightbox-fade-enter .lightbox-image,
  .lightbox-modal.lightbox-fade-leave .lightbox-image {
    animation: none;
  }
}

@media (max-width: 900px) {
  .index-shell {
    width: 100%;
    max-width: none;
    box-shadow: none;
  }

  header {
    padding: 18px 18px;
  }

  .container {
    height: 100%;
    max-width: 1200px;
    border: none;
    background: linear-gradient(180deg, #0b1622, rgba(0, 0, 0, 0.8));
    backdrop-filter: blur(5px);
    margin: 0 auto;
    padding: 15px;
  }

  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-left {
    height: auto;
    overflow: visible;
    width: 100%;
    padding: 10px;
    border-right: none;
  }

  .hero-right {
    width: 100%;
    padding: 15px;
  }

  .shots {
    grid-template-columns: none;
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .shot {
    width: 100%;
  }

  .shot img {
    height: auto;
  }

  #forum-button {
    display: none;
  }

  #login-button {
    width: 95px;
  }
}
