/* Old Story in the game's dragon look (khaled 2026-11-06: «عيد تصميم الموقع من جديد ليناسب تصميمنا التنين»).
   The game's own pictures (tools/marketing/kit, the DragonSkin of the auto-buff page): the window frame around the page,
   the band with the dragon at its near end and the red banner at its far one as the menu, small bands for the section
   titles, the plates for buttons (the red one is the call to action), wells for every row and card, Aref Ruqaa titles in
   Arabic, Metamorphous in the other languages, the ember glow of the launcher. Laid over site.css (loaded after it). */
:root{
  --gold:#e8cf96;--gold-bright:#f0e2bc;--gold-hot:#ffe7b0;--cream:#f0e2bc;--soft:#c9bfae;--dim:#a99f8d;
  --line:rgba(200,160,98,.55);--line-soft:rgba(200,160,98,.3);--line-faint:rgba(200,160,98,.18);--line-hot:rgba(255,215,140,.9);
  --field:rgba(12,9,8,.72);--tint:rgba(232,140,60,.12);--on-red:#fbe9c6;
  --f-title:'Aref Ruqaa','Cairo',serif;
  --art:url(../img/dragon/);
}
html:not([lang=ar]){--f-title:'Metamorphous','Cinzel','Cairo',serif}
html,body{background:#080606}
body{background:
  radial-gradient(60% 45% at 72% 12%,rgba(190,55,25,.30),transparent 70%),
  radial-gradient(45% 40% at 12% 88%,rgba(232,180,100,.08),transparent 70%),
  #080606 fixed}
body::before{background:radial-gradient(80% 60% at 50% 0%,rgba(120,30,12,.22),transparent 70%)}
.dragon{display:none!important}
.ember{background:radial-gradient(circle,#ffd28a 0,#ff8a3a 45%,transparent 70%)}

/* the page: the game's window frame */
.page{padding:clamp(10px,3vw,34px) clamp(4px,2vw,20px) 40px}
.panel{max-width:1060px;border:22px solid transparent;border-image:url(../img/dragon/frame_open.png) 25 fill / 22px stretch;
  background:transparent;box-shadow:0 30px 70px rgba(0,0,0,.85),0 0 0 1px rgba(0,0,0,.4)}
@media (max-width:599px){.panel{border-width:12px;border-image-width:12px}}

/* the header: the game's logo */
.hd{padding:10px var(--pad) 4px}
.hd .logo-link{display:inline-block}
.hd .logo{width:min(290px,64vw);height:auto;margin:0 auto;filter:drop-shadow(0 0 22px rgba(255,90,30,.45))}
.sub{margin-top:2px;color:var(--gold);letter-spacing:.32em;font-weight:600}

/* the menu: the band, the dragon holding its near end, the banner its far one */
.navbar{position:relative;margin:18px clamp(26px,3.4vw,40px) 6px;padding:16px clamp(40px,4.6vw,54px) 18px;border:0;
  background:url(../img/dragon/body.png) center / 100% 100% no-repeat;min-height:78px}
@media (min-width:900px){
  /* one line on the band, whatever the width: the plates give a little room before they wrap */
  .nav{flex-wrap:nowrap}
  .nav>.btn{flex:0 1 auto;min-width:0;padding:0 clamp(3px,.7vw,10px);font-size:clamp(12px,1.25vw,14px);white-space:nowrap}
}
.navbar::before,.navbar::after{content:"";position:absolute;pointer-events:none;background-repeat:no-repeat;background-size:100% 100%}
.navbar::before{left:-34px;top:-16px;width:104px;height:104px;background-image:url(../img/dragon/cap.png)}
.navbar::after{right:-16px;top:-16px;width:44px;height:110px;background-image:url(../img/dragon/strip.png)}
.nav{gap:6px}
@media (max-width:899px){
  .navbar{padding:14px 52px 16px;min-height:72px}
  .navbar::before{width:88px;height:88px;left:-28px;top:-12px}
  .navbar::after{width:38px;height:94px;top:-12px}
  .nav{background:radial-gradient(70% 50% at 70% 10%,rgba(190,55,25,.25),transparent 70%),#080606}
}

/* the plates: every button; the red one calls to action, and marks the page you are on */
.btn{border:12px solid transparent;border-image:url(../img/dragon/plate.png) 16 fill / 12px stretch;background:none;
  min-height:46px;padding:0 10px;color:var(--gold);font-weight:700;text-shadow:0 1px 2px #000;transition:filter .2s,color .2s}
.btn:hover{filter:brightness(1.18);color:var(--gold-hot);border-color:transparent}
.btn svg{color:var(--gold)}
.nav .btn{min-height:44px}
.nav .btn[aria-current=page],.btn[aria-selected=true]{border-image-source:url(../img/dragon/plate_red.png);background:none;color:var(--on-red)}
.btn--primary{border-image-source:url(../img/dragon/plate_red.png);background:none;color:var(--on-red);font-weight:800;
  min-height:58px;padding-inline:20px;text-shadow:0 1px 3px rgba(0,0,0,.8);border-color:transparent}
.btn--primary:hover{color:#fff4dc;border-color:transparent}
.btn--primary svg{color:var(--on-red)}
.btn--lg{min-height:64px}
.btn--sm{min-height:38px;border-width:10px;border-image-width:10px;font-size:13px}
.btn--dia::before{background:var(--gold)}
.btn--danger{border-image-source:url(../img/dragon/plate_red.png);color:var(--on-red)}
.btn[disabled],.btn.is-disabled{filter:grayscale(.6) brightness(.8)}

/* the section titles: a small band with its dragon, the title in the game's title face */
.st{position:relative;min-height:52px;margin-bottom:18px;padding:4px 22px 6px 66px;background:url(../img/dragon/body.png) center / 100% 100% no-repeat;
  font:700 21px/1.3 var(--f-title);color:var(--gold);text-shadow:0 0 12px rgba(255,160,60,.35),0 2px 3px #000}
.st::before{position:absolute;inset-inline-start:-16px;top:-8px;width:64px;height:64px;transform:none;background:url(../img/dragon/cap.png) center / contain no-repeat}
.st::after{position:absolute;inset-inline-end:-6px;top:-8px;flex:none;width:26px;height:66px;min-width:0;max-width:none;margin:0;
  background:url(../img/dragon/strip.png) center / 100% 100% no-repeat}
[dir=rtl] .st{padding:4px 66px 6px 22px}
[dir=rtl] .st::before{transform:scaleX(-1)}
[dir=rtl] .st::after{background:url(../img/dragon/strip.png) center / 100% 100% no-repeat;transform:scaleX(-1)}
.lang-head .st::after{display:block}
.st--pf .pf{position:relative;z-index:1}
.h3{font:700 17px/1.4 var(--f-title);color:var(--gold)}
.lead{color:var(--cream)}

/* the wells: rows, cards, questions, tiles, fields */
.row,.block,.faq,.tile,.community,.state,.content .acc-line,.lang-card,.input,.select,.sha code{
  border:10px solid transparent;border-image:url(../img/dragon/well.png) 10 fill / 10px stretch;background:none}
.row{padding:2px 8px}
a.row:hover,.faq[open],.row.is-sel,.lang-card:hover,.input:focus,.select:focus,.input:hover,.select:hover{
  border-color:transparent;filter:brightness(1.15)}
.row.is-sel,.lang-card.is-on{box-shadow:0 0 0 1px var(--line-hot),0 0 18px rgba(255,160,60,.25)}
.lang-card.is-on{color:var(--gold-hot)}
.block-t{font:700 19px/1.4 var(--f-title);color:var(--gold)}
.tile dd{color:var(--gold-hot)}
.badge{background:url(../img/dragon/plate_red.png) center / 100% 100% no-repeat;color:var(--on-red);border-radius:0}
.chip{border-color:var(--line);color:var(--gold)}
.steps li::before,.flow-n{border:8px solid transparent;border-image:url(../img/dragon/plate_red.png) 16 fill / 8px stretch;
  color:var(--on-red);background:none;width:30px;height:30px}
.flow-n{width:36px;height:36px}
.tbl td{background:rgba(12,9,8,.72);border-color:var(--line-soft)}
.tbl tr:hover td{border-color:var(--line-hot);background:rgba(40,16,10,.6)}
.bar{background:rgba(200,160,98,.16)}
.bar>i{background:linear-gradient(90deg,#7a1d12,#d84a2a)}
[dir=rtl] .bar>i{background:linear-gradient(270deg,#7a1d12,#d84a2a)}
.nf-code{font-family:var(--f-title)}

/* the language picker and the footer */
.lang-box{border:22px solid transparent;border-image:url(../img/dragon/frame_open.png) 25 fill / 22px stretch;background:none}
.lang-pop{background:rgba(5,3,3,.82)}
.ft{border-top:0;position:relative;padding-top:22px}
.ft::before{content:"";position:absolute;inset-inline:0;top:0;height:1px;background:linear-gradient(90deg,transparent,var(--line-hot) 50%,transparent)}
.ver{color:var(--dim)}
/* B1078: the menu's account button, lit like the call to action (every page) */
.btn--acct{border-color:var(--line-hot);color:var(--gold-hot)}
.btn--acct svg{flex:none}
/* B1078: the «create your account» line opens the site's form */
a.acc-line--go{color:var(--gold);text-decoration:none;transition:filter .15s,color .15s}
a.acc-line--go:hover{color:var(--gold-hot);filter:brightness(1.2)}
