.banner-ad-wrap {
  text-align: center;
  background: var(--card-bg);
  border: 1px dashed rgba(var(--accent-rgb), 0.2);
  border-radius: 10px;
  padding: 8px;
  margin-top: 14px;
  min-height: 106px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
}
.ad-label {
  font-size: 0.62rem;
  color: var(--text-secondary);
  opacity: 0.4;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sidebar-ad-slot {
  background: var(--card-bg);
  border: 1px dashed rgba(var(--accent-rgb), 0.18);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 20px;
  text-align: center;
  min-height: 274px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

#play-slope-2-online .game-card-wrap,
#play-game-embed-online .game-card-wrap {
  background: #303a35 !important;
  border: 1px solid #666 !important;
  border-radius: 16px;
  padding: 14px 14px 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
@media (min-width: 768px) {
  #play-slope-2-online .game-card-wrap,
  #play-game-embed-online .game-card-wrap {
    padding: 18px 18px 20px;
  }
}
#play-slope-2-online #game-frame-wrap.resp-iframe,
#play-game-embed-online #game-frame-wrap.resp-iframe {
  position: relative;
  width: 100%;
  padding-top: 64%;
  border-radius: 10px;
  overflow: hidden;
  background: #252b28;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}
#play-slope-2-online #game-frame-wrap.resp-iframe > iframe,
#play-game-embed-online #game-frame-wrap.resp-iframe > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 768px) {
  #play-slope-2-online #game-frame-wrap.resp-iframe,
  #play-game-embed-online #game-frame-wrap.resp-iframe {
    padding-top: 88%;
  }
}

.game-continue-hint {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.game-continue-hint.is-visible {
  opacity: 1;
  visibility: visible;
}
.game-continue-hint__badge {
  display: inline-block;
  max-width: min(320px, 92vw);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(8, 10, 8, 0.88);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.game-continue-hint__text {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-align: center;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.9), 0 1px 2px #000;
}

.game-hero-shell {
  margin-bottom: 0;
}
.game-hero-main {
  min-width: 0;
}
.game-hero-below {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .game-hero-below {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}
@media (max-width: 520px) {
  .game-hero-below {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    justify-items: stretch;
  }
}

.sidebar-local-games {
  width: 100%;
  max-width: 320px;
  margin: 0 0 18px 0;
  padding: 0;
  box-sizing: border-box;
}
.sidebar-local-games__title {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 12px 0;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.35;
}
.sidebar-local-games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  gap: 12px;
  padding: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
}
.sidebar-local-games-grid .local-game-tile {
  min-width: 0;
  width: 100%;
}
.sidebar-local-games .local-game-tile {
  padding: 4px;
  border-radius: 16px;
}
.sidebar-local-games .local-game-tile__thumb {
  border-radius: 14px;
}
.sidebar-local-games .local-game-tile__thumb img {
  border-radius: 14px;
}
.sidebar-local-games .local-game-tile__name {
  font-size: 0.8rem;
  padding: 12px 6px 8px;
  border-radius: 0 0 14px 14px;
}

.sidebar-ad-slot.sidebar-ad-slot--below-local {
  margin-top: 16px;
  margin-bottom: 0;
  min-height: 0;
  height: auto;
  display: block;
  padding: 10px 8px 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 12, 10, 0.55);
}
.sidebar-ad-slot.sidebar-ad-slot--below-local .ad-label {
  display: block;
  margin-bottom: 8px;
}
.sidebar-ad-slot__body {
  min-height: 0;
  line-height: 0;
}
.sidebar-ad-slot__body > ins {
  display: inline-block;
  vertical-align: top;
}

.local-game-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid #666;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  padding: 3px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.local-game-tile:hover {
  border-color: #888;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(var(--accent-rgb), 0.12);
  transform: translateY(-2px);
  background: rgba(var(--accent-rgb), 0.07);
}
.local-game-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.local-game-tile__thumb {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #1a211d;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.local-game-tile__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.local-game-tile:hover .local-game-tile__thumb img {
  transform: scale(1.06);
}
.local-game-tile__name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 11px 6px 7px;
  border-radius: 0 0 14px 14px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.22;
  text-align: center;
  letter-spacing: 0.015em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.75);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  pointer-events: none;
}
@media (min-width: 900px) {
  .local-game-tile__name {
    font-size: 0.78rem;
    padding-top: 12px;
  }
}
.game-hero-below .local-game-tile {
  padding: 4px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.game-hero-below .local-game-tile__name {
  font-size: 0.8rem;
  padding: 12px 6px 8px;
}

#game-controls {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 46px;
}
#game-controls h1 {
  font-size: inherit;
  margin: 0;
  line-height: 1;
  font-weight: inherit;
}
.gcbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.gcbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.game-title-link {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.01em;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.45);
}
.game-title-link:hover {
  color: rgba(255, 255, 255, 0.88);
}
.ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.ctrl-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ctrl-btn-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  #play-game-embed-online .gcbar-right .ctrl-btn .ctrl-btn-label {
    display: none;
  }
  #play-game-embed-online .gcbar-right .ctrl-btn {
    min-width: 40px;
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  #play-game-embed-online #fs-btn,
  #play-slope-2-online #fs-btn {
    display: none !important;
  }
}

.share-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.share-modal-bg.open {
  opacity: 1;
  pointer-events: auto;
}
.share-modal {
  background: linear-gradient(145deg, #141f14, #0c0f0c);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 18px;
  padding: 28px 28px 24px;
  width: 340px;
  max-width: 90vw;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(var(--accent-rgb), 0.06);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.22s ease;
  opacity: 0;
}
.share-modal-bg.open .share-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.share-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.share-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
}
.share-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.share-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.share-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.share-btn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  text-decoration: none;
}
.share-btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  color: #fff;
}
.share-btn-item:hover .share-btn-icon {
  transform: translateY(-3px);
}
.share-btn-item.x-btn .share-btn-icon {
  background: #1a1a1a;
  border-color: #333;
}
.share-btn-item.x-btn:hover .share-btn-icon {
  background: #222;
  border-color: #555;
}
.share-btn-item.reddit-btn .share-btn-icon {
  background: #1a0f0a;
  border-color: #4a2010;
}
.share-btn-item.reddit-btn:hover .share-btn-icon {
  background: #2a1508;
  border-color: #ff4500;
}
.share-btn-item.fb-btn .share-btn-icon {
  background: #0a0f1a;
  border-color: #1a2a4a;
}
.share-btn-item.fb-btn:hover .share-btn-icon {
  background: #0f1a30;
  border-color: #1877f2;
}
.share-btn-item.email-btn .share-btn-icon {
  background: #0c0c14;
  border-color: #2a2a3a;
}
.share-btn-item.email-btn:hover .share-btn-icon {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: var(--accent);
}
.share-btn-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}
.share-url-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.share-url-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.share-copy-btn {
  flex-shrink: 0;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #000;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.share-copy-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.share-copy-btn:active {
  transform: translateY(0);
}

.slope-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 10001;
  padding: 10px 20px;
  border-radius: 8px;
  background: #0f1a0f;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.slope-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .share-modal {
    padding: 22px 18px 20px;
  }
  .share-btns {
    gap: 8px;
  }
  .share-btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
}
