body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, #b0e0ff 0%, #7fffd4 60%, #e0b3ff 100%);
  color: #222;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* iOS Card Look */
.user-info-card, .game, #login-form {
  background: rgba(255,255,255,0.5);
  border-radius: 22px;
  box-shadow: 0 4px 24px 0 rgba(52,73,94,0.11), 0 1.5px 6px 0 rgba(52,73,94,0.07);
  padding: 18px 22px;
  margin: 18px auto;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: box-shadow 0.25s cubic-bezier(.4,.2,.2,1), transform 0.25s cubic-bezier(.4,.2,.2,1);
}

.user-info-card {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 1000;
  min-width: 230px;
  min-height: 48px;
  gap: 1em;
  font-size: 1.08em;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.32s cubic-bezier(.4,.2,.2,1), transform 0.38s cubic-bezier(.32,1.56,.64,1);
}

.user-info-card.fade-hidden {
  opacity: 0 !important;
  pointer-events: none;
  transform: translateY(-32px) scale(0.98) !important;
}

.user-avatar {
  font-size: 2em;
  background: #f1f2f6;
  border-radius: 50%;
  width: 2.7em;
  height: 2.7em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  box-shadow: 0 2px 8px rgba(52,73,94,0.08);
}


.user-label {
  flex: 1;
  color: #222;
}

.user-action-btns {
  display: flex;
  gap: 8px;
}

.user-action-btn {
  background: #f2f4f7;
  border: none;
  border-radius: 12px;
  padding: 7px 13px;
  color: #222;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 1.5px 6px 0 rgba(52,73,94,0.07);
}
.user-action-btn:active {
  background: #e9eaf0;
  transform: scale(0.97);
}

#show-userinfo-btn {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 999;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 18px 0 rgba(52,73,94,0.13);
  border: none;
  width: 56px;
  height: 56px;
  font-size: 2.1em;
  color: #007aff;
  display: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: box-shadow 0.2s, transform 0.13s;
}
#show-userinfo-btn > * {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 1;
}
#show-userinfo-btn:active {
  background: #f2f4f7;
  transform: scale(0.93);
}

/* Login Overlay */
#login-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.47);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.38s cubic-bezier(.4,.2,.2,1);
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
#login-form {
  box-shadow: 0 4px 24px 0 rgba(52,73,94,0.13), 0 1.5px 6px 0 rgba(52,73,94,0.07);
  border-radius: 22px;
  padding: 28px 26px 22px 26px;
  max-width: 340px;
  width: 94vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
#login-form h2 {
  text-align: center;
  color: #007aff;
  font-weight: 700;
  margin-bottom: 12px;
}
.form-group label {
  color: #888;
  font-size: 0.97em;
  margin-bottom: 5px;
  font-weight: 500;
}
.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid #e0e3e7;
  font-size: 1.08em;
  background: #f7f8fa;
  margin-bottom: 2px;
  outline: none;
  transition: border 0.2s;
}
.form-group input:focus {
  border: 1.5px solid #007aff;
  background: #fff;
}
.login-buttons {
  display: flex;
  gap: 13px;
  margin-top: 10px;
}
.login-buttons button, #login-btn, #guest-login-btn {
  flex: 1;
  background: linear-gradient(90deg,#007aff 60%,#4dd0e1 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 0;
  font-size: 1.09em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1.5px 6px 0 rgba(52,73,94,0.07);
  transition: background 0.2s, transform 0.1s;
}
#login-btn:active, #guest-login-btn:active {
  background: #007aff;
  transform: scale(0.97);
}
#login-error {
  color: #e74c3c;
  min-height: 20px;
  text-align: center;
  font-size: 1em;
  margin: 8px 0 0 0;
}

/* Game Cards */
.games {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-top: 20px;
}
.game {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 36px rgba(52,73,94,0.18), 0 2px 8px rgba(52,73,94,0.10);
  padding: 24px 18px 18px 18px;
  max-width: 340px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: box-shadow 0.22s, transform 0.15s;
}
.game h2 {
  color: #007aff;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.25em;
}
button, .user-action-btn, #spin-btn, #slot-btn, #login-btn, #guest-login-btn, .login-buttons button, .banking button {
  background: linear-gradient(90deg,#007aff 60%,#4dd0e1 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 13px 0;
  font-size: 1.11em;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 12px;
  box-shadow: 0 1.5px 6px 0 rgba(52,73,94,0.07);
  transition: background 0.22s, transform 0.11s;
  outline: none;
  display: block;
}
button:active, .user-action-btn:active, #spin-btn:active, #slot-btn:active, #login-btn:active, #guest-login-btn:active, .login-buttons button:active, .banking button:active {
  background: #007aff;
  transform: scale(0.97);
}
.user-action-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0 0 0 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: #f2f4f7;
  color: #007aff;
  box-shadow: 0 1.5px 6px 0 rgba(52,73,94,0.07);
  transition: background 0.16s, transform 0.11s;
}
.user-action-btn:active {
  background: #e9eaf0;
  color: #0051a8;
  transform: scale(0.97);
}
/* Warn-Button (Logout) */
#logout-btn {
  background: linear-gradient(90deg,#ff3b30 60%,#ff7675 100%) !important;
  color: #fff !important;
}
#logout-btn svg {
  stroke: #111 !important;
}

#logout-btn:active {
  background: #ff3b30 !important;
  color: #fff !important;
}
/* Sekundär-Button (Grau) */
#close-userinfo-btn {
  background: linear-gradient(90deg,#007aff 60%,#4dd0e1 100%) !important;
  color: #fff !important;
}
#close-userinfo-btn svg {
  stroke: #111 !important;
}
#close-userinfo-btn:active {
  background: #007aff !important;
  color: #fff !important;
}

#amount-input {
  border-radius: 12px;
  border: 1.5px solid #e0e3e7;
  padding: 8px 12px;
  font-size: 1.08em;
  background: #f7f8fa;
  margin-left: 10px;
  width: 90px;
  outline: none;
  transition: border 0.2s;
}
#amount-input:focus {
  border: 1.5px solid #34c759;
  background: #fff;
}

.wheel-lights-container {
  position: relative;
  width: 300px;
  height: 340px;
  margin-bottom: 10px;
}
.wheel-pointer {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%) rotate(180deg);
  width: 36px;
  height: 32px;
  z-index: 20;
  pointer-events: none;
}
.wheel-pointer::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: none;
  border-bottom: 32px solid #e17055;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.13));
}

.wheel-light {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  opacity: 0.93;
  pointer-events: none;
  box-shadow: none;
  transition: box-shadow 0.18s, filter 0.18s, opacity 0.18s;
}

.wheel-light.active {
  opacity: 1;
  box-shadow: 0 0 16px 7px rgba(255,255,180,0.85), 0 0 32px 10px currentColor;
  filter: brightness(1.7) saturate(1.3) drop-shadow(0 0 8px #fff);
}

/* Slot Machine */
.slot-machine {
  display: flex;
  gap: 12px;
  margin: 12px 0 0 0;
}
.reel {
  background: #f2f4f7;
  border-radius: 14px;
  box-shadow: 0 1.5px 6px 0 rgba(52,73,94,0.07);
  width: 54px;
  height: 54px;
  font-size: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 2px;
  transition: background 0.18s, transform 0.12s;
}
.reel.spinning-reel {
  background: #b2bec3;
  transform: scale(1.08) rotate(-8deg);
}
#slot-result, #wheel-result {
  min-height: 28px;
  color: #222;
  font-size: 1.07em;
  text-align: center;
  margin-top: 7px;
}

/* Responsive Layout */
@media (max-width: 800px) {
  .games {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .user-info-card {
    right: 8px;
    top: 8px;
    min-width: 180px;
    font-size: 0.99em;
    padding: 10px 9px;
  }
  #show-userinfo-btn {
    right: 8px;
    top: 8px;
    width: 38px;
    height: 38px;
    font-size: 1.1em;
  }
  .game {
    max-width: 97vw;
    min-width: 0;
    padding: 14px 6vw;
  }
}

/* Subtile iOS-typische Animationen */
.fade-in {
  animation: fadeIn 0.44s cubic-bezier(.4,.2,.2,1);
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
.slide-up {
  animation: slideUp 0.43s cubic-bezier(.32,1.56,.64,1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Login Overlay */
#login-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    color: white;
    padding-top: 80px;
    text-align: center;
}

#login-form {
    background: white;
    color: #333;
    padding: 30px;
    display: inline-block;
    border-radius: 12px;
    width: 320px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    margin: 0 auto;
}

#login-form h2 {
    margin-top: 0;
    color: #e17055;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #e17055;
    outline: none;
    box-shadow: 0 0 0 2px rgba(225, 112, 85, 0.2);
}

#login-btn {
    background: #e17055;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

#login-btn:hover {
    background: #d15b40;
}

#login-error {
    color: #e74c3c;
    margin: 15px 0;
    min-height: 20px;
    font-size: 14px;
}

/* Main Container */
.container {
  background: rgba(255,255,255,0.5);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.19), 0 3px 12px rgba(0,0,0,0.13);
  padding: 32px 24px 24px 24px;
  position: relative;
  z-index: 1;
}
h1 {
    text-align: center;
    color: #e17055;
}
.points {
    font-size: 1.15em;
    text-align: left;
    margin-bottom: 8px;
    color: #636e72;
}

.balance-bubble {
    background: rgba(255,255,255,0.5);
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(241,196,15,0.13);
    padding: 22px 28px 18px 28px;
    margin: 40px 18px 0 36px;
    min-width: 240px;
    max-width: 350px;
    display: block;
    font-size: 1.13em;
    align-self: flex-start;
}

.main-flex {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    width: 100vw;
    min-height: 100vh;
}

.container {
    margin: 40px 0 0 0;
    max-width: 700px;
    min-width: 0;
    background: rgba(255,255,255,0.5);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 32px 24px 24px 24px;
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 900px) {
    .main-flex {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }
    .balance-bubble {
        margin: 16px auto 0 auto;
        max-width: 98vw;
    }
    .container {
        margin-top: 18px;
        align-items: stretch;
    }
}

.main-flex {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100vw;
    min-height: 100vh;
}

@media (max-width: 900px) {
    .main-flex {
        flex-direction: column;
        align-items: stretch;
    }
    .balance-bubble {
        margin: 16px auto 0 auto;
        max-width: 98vw;
    }
    .container {
        margin-top: 18px;
    }
}
.banking {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}
.banking button {
    padding: 7px 18px;
    font-size: 0.95em;
    border-radius: 6px;
}
.banking input[type="number"] {
    font-size: 1em;
    padding: 5px 6px;
    border-radius: 5px;
    border: 1px solid #e17055;
    outline: none;
    width: 70px;
    margin-left: 4px;
}
.games {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}
.game {
    flex: 1 1 300px;
    min-width: 280px;
    background: #f9fafb;
    border-radius: 12px;
    padding: 18px 12px 24px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    text-align: center;
}
button {
    background: #e17055;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
}
button:hover {
    background: #fd9644;
}
#slot-section .slot-machine {

#close-userinfo-btn {
  color: #111 !important;
  background: none !important;
  border: none !important;
  font-size: 2em !important;
  font-weight: bold !important;
  line-height: 1 !important;
  padding: 0 16px !important;
  cursor: pointer;
  opacity: 0.92;
  transition: opacity 0.2s, color 0.2s;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 101;
  text-shadow: 0 2px 8px #fff, 0 0 2px #fff, 0 0 1px #fff;
}

#close-userinfo-btn:hover {
  color: #ff7675 !important;
  opacity: 1;
}

.user-info-card {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.5);
  box-shadow: 0 4px 18px 0 rgba(52,73,94,0.13);
  border-radius: 1.3em;
  padding: 10px 18px;
  min-width: 230px;
  min-height: 48px;
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 1000;
  gap: 1.1em;
  font-size: 1.04em;
}

.user-avatar {
  font-size: 1.7em;
  margin-right: 0.5em;
  background: #f1f2f6;
  border-radius: 50%;
  width: 2.1em;
  height: 2.1em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-label {
  color: #222;
  font-weight: 500;
}
.user-name {
  font-weight: bold;
  color: #0984e3;
  margin-left: 0.2em;
}
.user-action-btns {
  display: flex;
  gap: 0.18em;
  margin-left: auto;
  align-items: center;
}
.user-action-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: background 0.16s;
}
.user-action-btn svg {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0;
  padding: 0;
}
.user-action-btn:hover {
  background: #f1f2f6;
}


.user-info-content {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.7em;
}

.user-icon {
  font-size: 1.5em;
  margin-right: 0.4em;
}

.user-label {
  font-weight: 500;
  color: #636e72;
}

.user-name {
  font-weight: bold;
  color: #0984e3;
  margin-right: 1.2em;
}

.user-action-btns {
  display: flex;
  gap: 0.3em;
  margin-left: auto;
  align-items: center;
}

.user-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 7px;
  border-radius: 50%;
  transition: background 0.18s;
  display: flex;
  align-items: center;
}

.user-action-btn:hover {
  background: #f1f2f6;
}


#close-userinfo-btn {
  color: #111 !important;
  background: none !important;
  border: none !important;
  font-size: 2.1em !important;
  font-weight: bold !important;
  line-height: 1 !important;
  padding: 0 18px !important;
  cursor: pointer;
  opacity: 0.97;
  transition: opacity 0.2s, color 0.2s;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 101;
  text-shadow: 0 2px 8px #fff, 0 0 4px #fff, 0 0 2px #fff;
}
#close-userinfo-btn:hover {
  color: #ff7675 !important;
  opacity: 1;
}


    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 18px 0;
}
.reel {
    background: #fffbe7;
    border: 2px solid #fd9644;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
#wheel {
    display: block;
    margin: 0 auto 12px auto;
}
@media (max-width: 800px) {
    .games {
        flex-direction: column;
        gap: 24px;
    }
    .container {
        padding: 12px 4px 16px 4px;
    }
    .banking { flex-direction: column; gap: 8px; }

}
