:root {
  --red: #ff1230;
  --red-dark: #d90623;
  --green: #53c957;
  --yellow: #ffc107;
  --danger: #f44336;
  --ink: #253047;
  --muted: #7c8494;
  --line: #dde3ea;
  --bg: #eef3f8;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.entry-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .52), rgba(221, 231, 241, .92)),
    url("../88-page.png") top center / cover fixed;
}

.entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0;
}

.brand-mark,
.site-logo {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(255, 18, 48, .24);
}

.top-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-actions a {
  min-width: 104px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 6px;
  background: rgba(255, 255, 255, .78);
  color: #465266;
  text-align: center;
  box-shadow: 0 8px 22px rgba(53, 68, 88, .08);
}

.entry-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 56px;
}

.hero {
  min-height: 276px;
  display: grid;
  place-items: center;
}

.hero-panel {
  width: min(720px, 100%);
  padding: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .44);
}

.official-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  width: 100%;
  min-height: 136px;
  border: 0;
  border-radius: 8px;
  clip-path: polygon(7% 0, 93% 0, 100% 22%, 100% 78%, 93% 100%, 7% 100%, 0 78%, 0 22%);
  background: linear-gradient(180deg, #ff1230 0%, #fb061f 52%, #f60018 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(255, 18, 48, .35);
}

.official-button:hover {
  filter: brightness(1.05);
}

.official-button > span:last-child {
  font-size: 42px;
  line-height: 1;
}

.official-ribbon {
  position: absolute;
  top: 0;
  left: 18px;
  width: 94px;
  height: 56px;
  transform: skewX(-18deg);
  transform-origin: left top;
  display: grid;
  place-items: center;
  background: rgba(255, 96, 125, .95);
  color: rgba(201, 0, 32, .84);
  font-size: 20px;
  font-weight: 700;
}

.shield {
  display: grid;
  place-items: center;
  width: 70px;
  height: 78px;
  clip-path: polygon(8% 0, 92% 0, 82% 70%, 50% 100%, 18% 70%);
  background: #fff;
  color: var(--red);
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
}

.game-section {
  padding: 22px 0 0;
}

.game-section h1 {
  margin: 0 0 22px;
  text-align: center;
  font-size: 24px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.game-grid article {
  min-height: 162px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  text-align: center;
  box-shadow: 0 10px 24px rgba(42, 58, 78, .08);
}

.game-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2c8bdc, #30b983);
  color: #fff;
  font-weight: 800;
}

.game-grid h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.try-link {
  min-width: 96px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
}

.entry-footer {
  padding: 24px;
  text-align: center;
  color: #6d7480;
}

.jump-page {
  display: grid;
  place-items: center;
  padding: 36px 18px 96px;
  background: #fff;
}

.jump-app {
  width: min(1120px, 100%);
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.last-build {
  margin: 0 0 8px;
  color: #c1c7d0;
  font-size: 12px;
}

.client-ip {
  margin: 0 0 18px;
  color: #999;
  font-size: 26px;
  font-weight: 700;
}

.loading-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 84px;
  height: 70px;
}

.bars span {
  width: 10px;
  height: 42px;
  background: var(--green);
  animation: pulse .6s infinite ease-in-out;
}

.bars span:nth-child(2) {
  animation-delay: .15s;
}

.bars span:nth-child(3) {
  animation-delay: .3s;
}

@keyframes pulse {
  0%, 100% {
    height: 16px;
  }
  50% {
    height: 52px;
  }
}

.tips {
  color: #666;
  font-size: 18px;
  text-align: center;
}

.tips-small {
  margin: 0 0 10px;
  color: #999;
  font-size: 15px;
  text-align: center;
}

.line-panel {
  width: 100%;
}

.line-group h1 {
  margin: 20px 0 14px;
  color: #666;
  font-size: 18px;
  text-align: center;
}

.line-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}

.line-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 154px;
  height: 42px;
  padding: 8px 12px;
  border: 1px solid #eee;
  border-radius: 4px 20px 20px 4px;
  background: #fff;
  color: #333;
  font-size: 12px;
  font-weight: 700;
  cursor: default;
  text-decoration: none;
}

.line-button span:first-child {
  pointer-events: none;
}

.line-button strong {
  min-width: 52px;
  margin: 0 8px;
  color: #666;
  text-align: right;
  pointer-events: none;
}

.line-button i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #222;
  pointer-events: none;
}

.line-copy {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -5px -8px -5px 8px;
  border-radius: 50%;
  background: #eef0f3;
  cursor: pointer;
}

.line-copy::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background:
    linear-gradient(135deg, transparent 35%, #fff 35% 48%, transparent 48%) center / 100% 100%,
    radial-gradient(circle at 34% 34%, transparent 0 36%, #fff 37% 51%, transparent 52%),
    radial-gradient(circle at 66% 66%, transparent 0 36%, #fff 37% 51%, transparent 52%);
  opacity: .95;
}

.line-copy:hover,
.line-copy.is-copied {
  background: #667085;
}

.copy-toast {
  position: fixed;
  top: 72px;
  right: 64px;
  z-index: 50;
  max-width: min(460px, calc(100vw - 32px));
  padding: 12px 24px;
  border-radius: 24px;
  background: #ff6433;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(255, 100, 51, .24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.line-button.success {
  border-color: var(--green);
  cursor: pointer;
}

.line-button.success i {
  background: var(--green);
}

.line-button.warn {
  border-color: var(--yellow);
}

.line-button.limited,
.line-button.timeout {
  border-color: var(--danger);
}

.line-button.limited i,
.line-button.timeout i {
  background: var(--danger);
}

.reload-btn {
  display: block;
  min-width: 180px;
  height: 50px;
  margin: 40px auto 0;
  border: 0;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.reload-btn.secondary {
  background: #667085;
}

.site-page {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 18, 48, .16), transparent 36%),
    #f7fafc;
}

.site-shell {
  width: min(520px, 100%);
  padding: 42px 30px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 60px rgba(37, 48, 71, .12);
}

.site-logo {
  margin: 0 auto 20px;
}

.site-shell h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

.site-shell p {
  margin: 0 0 28px;
  color: var(--muted);
}

.site-shell a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 42px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .entry-header {
    align-items: flex-start;
    gap: 18px;
  }

  .top-actions {
    gap: 8px;
  }

  .top-actions a {
    min-width: 86px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .hero-panel {
    padding: 14px;
  }

  .official-button {
    min-height: 108px;
    gap: 18px;
  }

  .official-button > span:last-child {
    font-size: 30px;
  }

  .shield {
    width: 52px;
    height: 60px;
    font-size: 44px;
  }

  .official-ribbon {
    left: 12px;
    width: 70px;
    height: 44px;
    font-size: 15px;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .entry-header {
    flex-direction: column;
  }

  .copy-toast {
    top: 20px;
    right: 16px;
    left: 16px;
    max-width: none;
    text-align: center;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .hero {
    min-height: 220px;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .line-grid {
    gap: 10px;
  }

  .line-button {
    width: 100%;
  }
}
