.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.skip:focus{position:absolute;z-index:10;padding:8px;background:white}
.menu form{margin:0}.menu form button{display:block;color:white;text-decoration:underline;font:bold 11px Arial;background:url('/assets/image/caidan_bg.gif');width:141px;height:19px}.mobile-menu{display:none}
.banner-fallback,.animated-banner{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}.animated-banner{pointer-events:none}
.inner-title h1{margin:0}.inner-title h1 img{margin:auto}.classic-content a:not([data-gallery]){text-decoration:underline}
.news-pages{display:flex;gap:1em}
#neiyetop h1.classic-text-title{margin:10px auto 0;font-size:14px}.classic-content audio{max-width:100%}.classic-content :is(input,textarea,select){max-width:100%}.classic-form label{display:block}.rank-intro{text-align:center}.classic-content .news-editor input,.classic-content .news-editor textarea{display:block;width:100%}.news-editor textarea{min-height:120px}.editor-posts{overflow-wrap:anywhere}.classic-content .payment-packs{display:flex;flex-wrap:wrap;gap:6px}
@media (min-width: 981px) {
  .left-nav::before {
    top: 0;
    height: 100%;
    z-index: 1;
    pointer-events: none;
  }
  /* The menu artwork's gold line is at x=14 in index_04_bg.gif. */
  .left-nav .server-time {
    clip-path: inset(0 0 0 14px);
    padding-left: 17px;
  }

  .right-rail { position: relative; }
  .right-rail .quicklink, .right-rail .activity {
    position: relative;
    left: -9px; /* Last visible pixel aligns with the footer's gold edge at x=950. */
    clip-path: inset(0 0 2px 7px); /* Trim the original page background around the panel art. */
  }
  .right-rail .activity { clip-path: inset(2px 0 2px 7px); }

  /* The top of the QuickLink sprite is also the torn edge of the page. */
  .right-rail::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 21px;
    background: url("/assets/image/index_11.gif") no-repeat;
    pointer-events: none;
  }
  .right-rail .quicklink { background: none; }
  .right-rail .quick-top {
    clip-path: polygon(0 22px, 60px 22px, 60px 37px, 141px 37px, 100% 19px, 100% 100%, 0 100%);
  }

  /* The footer sprite is 36px tall. Its red nameplate starts at y=8. */
  #alldown {
    position: relative;
    height: 42px;
    padding: 15px 16px 6px 575px;
    background-color: #000;
  }
  #alldown::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 0;
    /* The parchment edge sits at x=950 in the 960px frame. */
    box-sizing: border-box;
    width: 10px;
    height: 28px;
    border-left: 1px solid #967321;
    background: #000;
  }
  #copyright { margin: 0; height: auto; line-height: 19px; }
}
@media(max-width:980px){
  .classic-php-page #all1{width:100%;display:flex;flex-direction:column;background:#ddcea9 url('/assets/reborn/art/classic-parchment.webp')}
  .classic-php-page #topbanner{order:0;width:100%;height:auto;aspect-ratio:802/195;float:none}
  .classic-php-page #main{order:1;float:none;width:100%;min-height:0;display:flex;align-items:center;flex-wrap:wrap;padding:3px;gap:3px}
  .left-nav:before,.classic-php-page .top-strip,.left-nav .server-time{display:none}.main-cta{width:min(30%,141px);margin:0}.main-cta img{width:100%;height:auto}.mobile-menu{display:block;margin-left:auto;padding:5px 10px;color:white;font-weight:bold}.mobile-menu summary{cursor:pointer}
  .left-nav nav.menu{display:none}.mobile-menu[open]+nav.menu{display:grid;grid-template-columns:repeat(2, minmax(0,1fr));width:100%;margin:0;padding:5px;gap:2px}.menu-title{grid-column:1/-1;margin:0}.menu a{width:100%;background-size:100% 100%;height:auto;min-height:22px;line-height:22px}
  .classic-php-page #all_neirong{order:2;width:100%;float:none}.classic-php-page #quicklink{order:3;width:100%;min-height:0;float:none;display:flex;justify-content:center;align-items:start;background:#111}.activity{margin-top:0}
  .classic-php-page #all_neiyeall,.classic-php-page #all_neiyezhongjian,.classic-php-page #all_neiyemain{width:100%;min-height:0;margin:0;padding:4px;background-size:100% auto}
  .classic-php-page #neiyetop{width:100%;background-size:100% 100%}.classic-php-page #neiyeup{width:100%;background-size:100% 100%}
  .classic-content .classic-form,.classic-content .download-info,.classic-content .download-support-box,.classic-content table,.classic-content textarea{max-width:100%}.classic-content .download-top{height:auto}
  .classic-php-page .home-game-forums,.classic-php-page .home-articles,.classic-php-page .home-wallpapers,.classic-php-page .home-screen-shots,.classic-php-page .home-friendlink,.ranking-page .inner-main{max-width:100%;overflow-x:auto}
  .classic-php-page #lsdown,.classic-php-page #alldown{order:4;max-width:100%}
}

@media(max-width:980px){
 .classic-php-page #all1{max-width:100vw;overflow:hidden}
 .classic-php-page #all_neirong,.classic-php-page #all_neiyemain{min-width:0}
 .classic-php-page .inner-main>div,.classic-php-page .inner-main>section{max-width:100%}
 .classic-php-page .inner-main{overflow-wrap:anywhere}
 .classic-php-page #copyright{max-width:100%;width:auto}
 .classic-php-page #main .main-cta{margin:0}
 .classic-php-page .menu{columns:auto}
 .classic-php-page #neiyetop h1 img{max-width:min(100%,250px)}
 .classic-content .download-info-title{width:100%}
}

@media(max-width:980px){
 .classic-php-page #lsdown{display:none}
 .classic-php-page #alldown {
   width: 100%; height: auto; padding: 4px 8px 8px;
   background: #111;
 }
 .classic-php-page #copyright {
   height: auto; margin: 0; padding: 4px 8px; text-align: center;
   border: 1px solid #967321; background: #440b0b;
 }
}

/* Original desktop layout uses the whole illustrated 642 px News frame. */
.home-original-news { overflow-x: auto; }
.home-original-news > table { width: 642px; max-width: none; }
.home-news-list .news-link {
  display: block; max-width: 218px; text-align: left; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.news-detail {
  margin: auto; width: min(32rem, 92vw); padding: 1rem; border: 2px ridge #bdae94;
  background: #f9efda; color: #291905;
}
.news-detail div { white-space: pre-wrap; overflow-wrap: anywhere; }
.news-detail::backdrop { background: #160f0780; }
.panel-actions { margin: 7px 0; }
.panel-actions form { display: inline; }
.verify-code .register-captcha { flex-wrap: wrap; }
.verify-code .captcha-code { object-fit: fill; flex-shrink: 0; }
.verify-code .captcha-refresh { color: #164370; text-decoration: underline; }
.captcha-listen { position: relative; font-size: 11px; color: #555; }
.captcha-listen summary { cursor: pointer; }
.captcha-listen audio { display: block; }
.captcha-listen[open] { flex-basis: 100%; }
.donate-content { width: min(560px, 100%); margin: 0 auto; padding-top: 14px; }
.donate-content .donate-banner, .donate-content .donate-guide {
  display: block; max-width: 100%; height: auto; margin: 0 auto;
}
.donate-content .donate-guide { margin: 22px auto; }
.donate-content .credit-copy, .donate-content .credit-order-box, .donate-content .credit-login-box { max-width: 100%; }
.donate-content .credit-order-box, .donate-content .credit-login-box { margin: 24px auto; text-align: center; }
.donate-form { margin: 28px 8px 34px; text-align: left; }
.donate-row, .donate-form .verify-code {
  display: grid; grid-template-columns: 77px 150px minmax(0,1fr); align-items: start; gap: 2px 8px; margin: 2px 0;
}
.donate-form input:not([type=hidden]), .donate-form select {
  width: 150px; height: 20px; box-sizing: border-box; padding: 1px 2px; background: white; border: 1px solid #888; color: black; font: inherit;
}
.donate-form input[readonly] { background: #f2f2f2; }
.donate-form .register-captcha { grid-column: 2 / -1; margin: 0; gap: 6px; }
.donate-form .verify-status { grid-column: 2 / -1; }
.donate-form .verify-status:empty { display: none; }
.donate-next { min-width: 58px; margin-top: 3px; padding: 4px 10px; font: inherit; border: 1px solid #888; background: white; color: black; }
@media (max-width: 660px) {
  .donate-form { margin: 18px 0 24px; }
  .donate-row, .donate-form .verify-code { grid-template-columns: 70px minmax(0,1fr); }
  .donate-row span { grid-column: 2; margin-bottom: 5px; }
  .donate-form .register-captcha { flex-wrap: wrap; }
  .donate-form input:not([type=hidden]), .donate-form select { max-width: 100%; }
}
@media (max-width: 980px) {
  .player-photo-panel, .classic-content .player-photo-form { max-width: 100%; }
  .classic-content .login-helper-links { white-space: normal; line-height: 1.8; }
}
.player-rules { padding: 0 clamp(8px, 3%, 24px) 20px; line-height: 1.5; }
.player-rules h1 { margin: 0 0 28px; padding-bottom: 15px; border-bottom: 1px dotted #888; color: #111; font-size: 16px; text-align: center; }
.player-rules p { margin: 0; line-height: inherit; }
.player-rules ol { margin: 20px 0 32px; padding-left: 2em; list-style: decimal outside; }
.player-rules li { margin-bottom: 10px; padding-left: .4em; }
.player-rules li p + p { margin-top: 4px; }
.player-rules a { color: #921b17; }
.player-rules .rules-top { margin-top: 28px; padding-top: 5px; border-top: 1px dotted #888; text-align: center; }
