.menu-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: rgba(0,0,0,.35);
  z-index: 8999;
}
.cookie-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.16);
}
.cookie-notice[hidden] {
  display: none;
}
.cookie-notice strong {
  display: block;
  margin-bottom: 4px;
}
.cookie-notice p {
  margin: 0;
  color: #555;
  line-height: 1.35;
}
.cookie-notice button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #0b69ff;
  border-radius: 8px;
  background: #0b69ff;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .cookie-notice {
    align-items: stretch;
    flex-direction: column;
  }
  .cookie-notice button {
    width: 100%;
  }
}
.side-menu {
    position: fixed;
    top: 0;
    left: -300px; /* oder -100% */
    width: 240px;
    height: 100%;
    background: #fff;
    border-right: 1px solid #eaeaea;
    padding: 72px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: left .25s ease;
    z-index: 9000;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.side-menu.open {
    left: 0;
}
.menu-link {
  text-decoration:none;
  color:#111;
  font-size:16px;
  font-weight: 400;
  line-height: 1.2;
  padding:10px 8px;
  border-radius:8px;
}
.menu-link:active { background:#f1f1f1; }
.logo_menu {
  display: block;
  height: 20%;
  width: auto;
  margin: 0 auto;
}
.menu-btn {
  color: #111;
}
.submenu-link {
    margin-left: 20px;
}
.reset-link {
  color:#555;
}

.app-help-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #d8d8d8;
  border-radius: 50%;
  background: #fff;
  color: #777;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .16);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
}

button.app-help-button {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
}
.app-help-button:hover,
.app-help-button:focus-visible {
  color: #333;
  border-color: #bdbdbd;
  outline: none;
}
body[data-match-id] .app-help-button {
  bottom: 86px;
}
.app-help-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px;
  border-radius: 0;
  background: rgba(0, 0, 0, .35);
  box-sizing: border-box;
}
.app-help-modal.show {
  display: flex;
}
.app-help-card {
  width: 100%;
  max-width: 440px;
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .18);
  box-sizing: border-box;
  color: #222;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.app-help-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
}
.app-help-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.app-help-card li {
  margin: 8px 0;
  line-height: 1.35;
}
.app-help-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.app-help-close {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid #0b69ff;
  border-radius: 10px;
  background: #0b69ff;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

@media (max-width: 480px) {
  .app-help-button {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  body[data-match-id] .app-help-button {
    bottom: 82px;
  }
}

/* Unified header styles across pages */
:root { --header-h: 64px; }
html,
body,
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
.app-header { position: sticky; top:0; z-index:100; background:#fff; border-bottom:1px solid #eee; }
.app-header .header-row {
  position: relative;
  display:flex;
  align-items:center;
  gap:12px;
  margin:0;
  padding:8px 12px;
  height: var(--header-h);
  box-sizing: border-box;
  background:#fff;
  border-radius:0;
}
.app-header .logo,
.app-header .logo-home {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.app-header .logo-home {
  display: block;
  height: 48px;
  width: auto;
  line-height: 0;
}
.app-header .logo {
  height: 48px;
  width:auto;
  margin:0;
}
.app-header .logo-home .logo {
  position: static;
  transform: none;
  display: block;
}
.header-live-status {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  max-width: calc(50% - 112px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  color: #666;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-live-status[hidden] {
  display: none !important;
}
.ws-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 6px;
  border-radius: 50%;
  background: #bbb;
  vertical-align: middle;
}
.ws-dot.live {
  background: #1bb55c;
}
.account-link {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid #d8d8d8;
  border-radius: 50%;
  background: #fff;
  color: #555;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  z-index: 2;
}
.account-link:hover,
.account-link:focus-visible {
  border-color: #bdbdbd;
  color: #222;
  outline: none;
}
.sb-header-actions .account-link {
  position: static;
  flex: 0 0 auto;
  transform: none;
}
.account-icon {
  position: relative;
  width: 22px;
  height: 22px;
  display: block;
}
.account-icon::before,
.account-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: currentColor;
}
.account-icon::before {
  top: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.account-icon::after {
  bottom: 2px;
  width: 17px;
  height: 10px;
  border-radius: 10px 10px 4px 4px;
}
.app-header .match-status-top {
  margin-right: 50px;
}
.menu-btn { border:none; background:transparent; font-size:24px; line-height:1; cursor:pointer; padding:8px; }
