/* Apple Brawl creators: the program page (creators.html) and the cabinet (creator.html).
   Builds on site.css (colours, .btn, .card, .tab, .num) and shop.css (.ofr themed backgrounds, .inp, .tstat, .faq). */

.apl { font-style: normal; }
.cr-page .wrap { max-width: 1100px; }
.top-actions { display: flex; align-items: center; margin-left: auto; }
.top-actions .btn { margin-left: 10px; }

/* ---------------------------------------------------------------- hero */
.cr-hero { position: relative; overflow: hidden; display: flex; align-items: center; border: 3px solid var(--ink); border-radius: 14px; padding: 30px 36px; --at: 78% 50%; }
.cr-hero .sh-body { position: relative; z-index: 1; flex: 1; min-width: 0; max-width: 620px; }
.cr-hero .brand.big { margin: 14px 0 8px; white-space: normal; }
.cr-hero .sh-lead { color: #fff; font-size: 19px; text-shadow: var(--ol); margin: 0 0 18px; max-width: 540px; }
.cr-hero .cta .btn { margin: 0 14px 12px 0; }
.cr-art { flex: none; width: 300px; margin-left: 20px; position: relative; height: 250px; }
.cr-art img { position: absolute; filter: drop-shadow(0 8px 0 rgba(0,0,0,.25)); }
.cr-art .a1 { width: 210px; right: 0; top: 0; }
.cr-art .a2 { width: 150px; left: 0; bottom: 0; transform: rotate(-10deg); }
.cr-art .a3 { width: 110px; right: 18px; bottom: 6px; transform: rotate(8deg); }
.hero-facts { display: flex; flex-wrap: wrap; margin-top: 6px; }
.hero-facts .hs { margin-bottom: 8px; color: var(--ink); text-shadow: none; }

/* ---------------------------------------------------------------- steps */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 16px; gap: 16px; }
.cr-steps .step p { font-size: 15px; }

/* ---------------------------------------------------------------- views -> apples */
.calc { display: flex; align-items: stretch; padding: 0; overflow: hidden; }
.calc-in { flex: 1; min-width: 0; padding: 20px 22px; }
.calc-in label { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; margin-bottom: 10px; }
.calc-in label b { font-weight: 400; font-size: 26px; }
.calc input[type=range] { width: 100%; accent-color: #22b800; height: 28px; margin: 0; }
.calc .scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 2px; }
.calc-out { flex: none; width: 360px; display: flex; flex-direction: column; justify-content: center; padding: 18px 20px; border-left: 3px solid var(--ink); --at: 50% 40%; }
.calc-res { display: flex; }
.calc-res > div { flex: 1; text-align: center; background: rgba(255,255,255,.96); border: 3px solid var(--ink); border-radius: 10px; padding: 8px 6px 10px; color: var(--ink); }
.calc-res > div + div { margin-left: 10px; }
.calc-res small { display: block; font-size: 13px; color: var(--muted); }
.calc-res b { display: block; font-weight: 400; font-size: 34px; line-height: 1.1; }
.calc-buy { color: #fff; text-shadow: var(--ol); font-size: 15px; margin: 12px 0 0; text-align: center; }
.calc-note { margin: 12px 0 0; }
.ex-list { display: grid; grid-gap: 10px; gap: 10px; margin-top: 16px; }
.ex { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-gap: 4px 12px; gap: 4px 12px; align-items: center; }
.ex .v { text-align: right; font-size: 17px; line-height: 1.1; }
.ex .v small { display: block; font-size: 11px; color: var(--muted); }
.ex .bar { display: flex; align-items: center; min-width: 0; }
.ex .bar i { display: block; height: 20px; flex: none; min-width: 6px; border: 3px solid var(--ink); border-radius: 0 6px 6px 0; border-left-width: 0;
             background: linear-gradient(#8cf06a, #22b800); box-shadow: inset 0 -4px 0 #158200; }
.ex .bar b { font-weight: 400; font-size: 18px; margin-left: 10px; white-space: nowrap; }
.ex .buy { grid-column: 2; font-size: 13px; color: var(--muted); margin-top: -2px; }

/* ---------------------------------------------------------------- apple shop tiles */
.ashop { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); grid-gap: 14px; gap: 14px; }
.at { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; border: 3px solid var(--ink); border-radius: 12px; padding: 12px 10px 12px; --at: 50% 38%; }
.at-pic { height: 92px; display: flex; align-items: center; justify-content: center; }
.at-pic img { max-width: 120px; max-height: 92px; filter: drop-shadow(0 5px 0 rgba(0,0,0,.25)); }
.at-name { color: #fff; text-shadow: var(--ol); font-size: 16px; line-height: 1.15; margin: 8px 0 8px; min-height: 37px; display: flex; align-items: center; }
.at-price { display: inline-flex; align-items: center; background: rgba(255,255,255,.97); color: var(--ink); border: 3px solid var(--ink); border-radius: 8px; padding: 3px 12px 4px; font-size: 18px; box-shadow: 0 3px 0 rgba(17,24,39,.35); transform: skewX(-8deg); }
.at-price > span { transform: skewX(8deg); }
.at-sub { color: #fff; text-shadow: var(--ol); font-size: 12px; margin-top: 7px; opacity: .95; }
.at .btn { display: block; width: 100%; margin-top: 10px; font-size: 17px; }
.at .btn > span { padding: 7px 10px 10px; }
.at.off { filter: grayscale(.65) brightness(.92); }

/* ---------------------------------------------------------------- levels */
.levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 14px; gap: 14px; }
.lv { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.lv-top { padding: 12px 14px 12px; border-bottom: 3px solid var(--ink); --at: 20% 30%; }
.lv-n { display: inline-block; font-size: 13px; background: rgba(255,255,255,.96); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; padding: 1px 8px 2px; }
.lv-name { display: block; color: #fff; text-shadow: var(--ol2); font-size: 25px; line-height: 1.1; margin-top: 6px; }
.lv-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.lv-need { font-size: 14px; color: var(--muted); margin: 0 0 10px; flex: 1; }
.lv-row { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--soft2); padding: 7px 0 0; margin-top: 7px; font-size: 14px; color: var(--muted); }
.lv-row b { font-weight: 400; font-size: 18px; color: var(--ink); white-space: nowrap; }
.lv.cur { box-shadow: var(--shadow), 0 0 0 4px #ffc400; }

/* ---------------------------------------------------------------- bonuses, rules, cta */
.bonus .card { display: flex; flex-direction: column; }
.bonus .f-ico { margin: 0 0 12px; }
.bonus p { font-size: 15px; color: var(--muted); flex: 1; }
.bonus .key { margin-top: 10px; font-size: 15px; border-top: 2px solid var(--soft2); padding-top: 9px; }
.cta-card { display: flex; align-items: center; padding: 22px 26px; --at: 85% 50%; }
.cta-card .cc-body { flex: 1; min-width: 0; }
.cta-card h3 { color: #fff; text-shadow: var(--ol2); font-size: 28px; margin: 0 0 6px; }
.cta-card p { color: #fff; text-shadow: var(--ol); font-size: 16px; margin: 0; max-width: 560px; }
.cta-card .row { margin: 0 0 0 20px; flex: none; }
.cta-card .row .btn { margin: 6px 0 6px 12px; }

/* ---------------------------------------------------------------- windows */
.modal .box.wide { max-width: 560px; }
.m-text { font-size: 15px; color: var(--muted); }
.tpl { font: 14px/1.5 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; white-space: pre-wrap; background: var(--soft); border: 2px solid var(--soft2); border-radius: 8px; padding: 10px 12px; margin: 10px 0 0; color: var(--ink); }
.fld { margin-top: 12px; }
.fld label { display: block; font-size: 15px; margin-bottom: 6px; }
.fld .inp { font-size: 17px; letter-spacing: .3px; padding: 9px 11px; }
.fld select.inp { padding-right: 30px; }
.chk { display: flex; align-items: flex-start; font: 14px/1.45 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--muted); margin-top: 12px; }
.chk input { flex: none; width: 20px; height: 20px; margin: 1px 9px 0 0; accent-color: #22b800; }
.chk a { color: #1769e0; }
.err-line { color: #9e0018; font-size: 14px; margin-top: 8px; min-height: 0; }
.skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); grid-gap: 10px; gap: 10px; margin-top: 12px; max-height: 330px; overflow: auto; padding: 4px 2px; }
.sk { position: relative; padding: 0; border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--r1, #d29bff); cursor: pointer; text-align: center; font-family: inherit; color: var(--ink); }
.sk img { display: block; width: 100%; height: 86px; object-fit: contain; background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.6), rgba(255,255,255,0) 70%); }
.sk span { display: block; background: #fff; border-top: 3px solid var(--ink); font-size: 12px; line-height: 1.2; padding: 5px 4px 6px; min-height: 42px; }
.sk.on { box-shadow: 0 0 0 3px #ffc400, 0 0 0 6px var(--ink); }
.sk[disabled] { cursor: default; filter: grayscale(1); opacity: .55; }
.sk em { position: absolute; top: 4px; right: 4px; font-style: normal; font-size: 11px; background: var(--ink); color: #fff; border-radius: 5px; padding: 1px 5px 2px; }
.stepper { display: flex; align-items: center; margin-top: 12px; }
.stepper button { width: 44px; height: 44px; border: 3px solid var(--ink); border-radius: 8px; background: var(--soft); font: 24px/1 "Pusia", sans-serif; cursor: pointer; color: var(--ink); }
.stepper b { font-weight: 400; font-size: 28px; min-width: 90px; text-align: center; }
.sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font-size: 16px; border-top: 2px solid var(--soft2); padding-top: 10px; }
.sum b { font-weight: 400; font-size: 22px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 40; background: var(--ink); color: #fff; border-radius: 10px; padding: 11px 16px 12px; font-size: 15px;
         box-shadow: 0 5px 0 rgba(0,0,0,.25); max-width: calc(100% - 32px); }

/* ---------------------------------------------------------------- cabinet */
.demo-bar { display: flex; align-items: center; flex-wrap: wrap; background: #fff1cf; color: #6b4300; border: 3px solid var(--ink); border-radius: 10px; padding: 8px 12px; font-size: 14px; margin-bottom: 16px; }
.demo-bar b { font-weight: 400; background: #ffbf00; color: #fff; text-shadow: var(--ol); border: 2px solid var(--ink); border-radius: 6px; padding: 1px 8px 2px; margin-right: 10px; }
.demo-bar .link { margin-left: auto; }
.login { max-width: 460px; margin: 30px auto 0; }
.login h2 { font-size: 26px; margin: 0 0 6px; }
.login .btn.wide { margin-top: 14px; }
.cab-head { display: flex; align-items: center; flex-wrap: wrap; border: 3px solid var(--ink); border-radius: 14px; padding: 18px 20px; --at: 15% 30%; }
.ch-ava { flex: none; width: 76px; height: 76px; border-radius: 12px; border: 3px solid var(--ink); background: #fff; overflow: hidden; margin-right: 16px; }
.ch-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-who { flex: 1; min-width: 0; }
.ch-lv { display: inline-block; font-size: 13px; background: #ffbf00; color: #fff; text-shadow: var(--ol); border: 2px solid var(--ink); border-radius: 6px; padding: 1px 8px 2px; }
.ch-name { display: block; color: #fff; text-shadow: var(--ol2); font-size: 30px; line-height: 1.1; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-tag { color: #ffe066; text-shadow: var(--ol); font-size: 15px; letter-spacing: .5px; }
.ch-bal { flex: none; text-align: center; color: var(--ink); text-shadow: none; white-space: nowrap; background: rgba(255,255,255,.97); border: 3px solid var(--ink); border-radius: 12px; padding: 8px 18px 10px; margin-left: 14px; box-shadow: 0 4px 0 rgba(17,24,39,.3); }
.ch-bal small { display: block; font-size: 13px; color: var(--muted); }
.ch-bal b { display: block; font-weight: 400; font-size: 38px; line-height: 1.05; }
.ch-bal span { display: block; font-size: 12px; color: #9e5a00; }
.cab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 14px; gap: 14px; margin-top: 16px; }
.stat h3 { font-size: 16px; color: var(--muted); margin: 0 0 6px; }
.stat .big { font-size: 26px; line-height: 1.1; }
.stat .big small { font-size: 15px; color: var(--muted); }
.meter { height: 20px; border: 3px solid var(--ink); border-radius: 8px; background: var(--soft); overflow: hidden; margin: 8px 0 6px; }
.meter i { display: block; height: 100%; background: linear-gradient(#8cf06a, #22b800); box-shadow: inset 0 -4px 0 #158200; }
.meter.gold i { background: linear-gradient(#ffdc3c, #ffbf00); box-shadow: inset 0 -4px 0 #d58d00; }
.stat p { font-size: 13px; color: var(--muted); margin: 0; }
.req { list-style: none; margin: 4px 0 0; padding: 0; }
.req li { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 3px 0; }
.req li b { font-weight: 400; color: var(--ink); white-space: nowrap; }
.req li.ok b { color: #158a2e; }
.cab-tabs { flex-wrap: wrap; margin: 24px 0 14px -4px; }
.cab-tabs .tab { margin-bottom: 8px; font-size: 16px; }
.panel { min-height: 200px; }
.send { display: flex; align-items: flex-end; flex-wrap: wrap; margin: 0 -6px; }
.send .fld { margin: 0 6px 10px; }
.send .fld.url { flex: 1 1 320px; }
.send .fld.kind { flex: 0 0 170px; }
.send .btn { margin: 0 6px 10px; }
.vlist { width: 100%; border-collapse: collapse; font-size: 15px; }
.vlist th { text-align: left; font-weight: 400; font-size: 13px; color: var(--muted); padding: 8px 10px; border-bottom: 3px solid var(--ink); white-space: nowrap; }
.vlist td { padding: 10px; border-bottom: 2px solid var(--soft2); vertical-align: middle; }
.vlist tr:last-child td { border-bottom: 0; }
.vlist td.n, .vlist th.n { text-align: right; white-space: nowrap; }
.vlist .vt { display: block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vlist .vt a { color: #1769e0; text-decoration: none; }
.vlist .vs { display: block; font-size: 12px; color: var(--muted); }
.st { display: inline-block; font-size: 13px; border: 2px solid; border-radius: 6px; padding: 1px 8px 2px; white-space: nowrap; }
.st.wait { color: #6b4300; background: #fff1cf; border-color: #ffd166; }
.st.count { color: #0b3d73; background: #e3efff; border-color: #9cc3ff; }
.st.ok { color: #135c00; background: #e3ffd9; border-color: #9fe58a; }
.st.no { color: #9e0018; background: #ffe3e6; border-color: #ff9aa6; }
.codebox { display: flex; align-items: center; flex-wrap: wrap; }
.code { font-size: 30px; letter-spacing: 2px; background: var(--soft); border: 3px dashed var(--ink); border-radius: 10px; padding: 4px 16px 6px; margin: 6px 12px 6px 0; }
.mini { font-size: 14px; }
.copy-btn { font-size: 15px; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { display: flex; align-items: center; padding: 10px 2px; border-bottom: 2px solid var(--soft2); font-size: 15px; }
.hist li:last-child { border-bottom: 0; }
.hist .hd { flex: none; width: 92px; font-size: 13px; color: var(--muted); }
.hist .ht { flex: 1; min-width: 0; }
.hist .ha { flex: none; font-size: 18px; margin-left: 10px; white-space: nowrap; }
.hist .ha.plus { color: #158a2e; }
.hist .ha.minus { color: #9e0018; }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.tblw { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------------------------------------------------------------- tablet / phone */
@media (max-width: 1040px) {
  .grid4, .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-art { display: none; }
  .calc { display: block; }
  .calc-out { width: auto; border-left: 0; border-top: 3px solid var(--ink); }
  .cab-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cr-hero { padding: 20px 18px; }
  .cr-hero .sh-lead { font-size: 17px; }
  .cr-hero .cta { display: block; }
  .cr-hero .cta .btn { display: block; margin: 0 0 12px; }
  .grid4, .levels { grid-template-columns: minmax(0, 1fr); }
  .calc-in { padding: 16px; }
  .calc-out { padding: 14px 16px; }
  .calc-res b { font-size: 28px; }
  .ashop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .at-pic { height: 74px; }
  .at-pic img { max-height: 74px; max-width: 96px; }
  .at-name { font-size: 15px; }
  .cta-card { display: block; padding: 18px 16px; }
  .cta-card .row { margin: 14px 0 0; }
  .cta-card .row .btn { margin: 0 0 10px; }
  .top-actions .btn.hide-sm { display: none; }
  .cab-head { padding: 14px; }
  .ch-ava { width: 60px; height: 60px; margin-right: 12px; }
  .ch-name { font-size: 24px; }
  .ch-bal { width: 100%; margin: 14px 0 0; display: flex; align-items: baseline; justify-content: space-between; padding: 8px 14px; }
  .ch-bal b { font-size: 30px; }
  .ch-bal small, .ch-bal span { display: inline; }
  .vlist .vt { max-width: 180px; }
  .hist .hd { width: 70px; }
  .send .fld.kind { flex: 1 1 140px; }
  .send .btn { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------- account, application, checks (creators server) */
.auth-tabs { display: flex; border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; margin: 0 0 6px; }
.auth-tabs button { flex: 1; border: 0; background: var(--soft); font: 18px/1 "Pusia", sans-serif; color: var(--muted); padding: 10px 0 12px; cursor: pointer; }
.auth-tabs button + button { border-left: 3px solid var(--ink); }
.auth-tabs button.on { background: linear-gradient(#ffdc3c, #ffbf00); color: #fff; text-shadow: var(--ol); }
.auth-links { margin-top: 12px; text-align: center; }
#aCode { font-size: 30px; letter-spacing: 10px; text-align: center; }
.btn.busy { opacity: .7; pointer-events: none; }
.login .tstat { margin-top: 12px; }
.steps-list { list-style: none; counter-reset: st; margin: 14px 0 0; padding: 0; }
.steps-list > li { counter-increment: st; position: relative; padding: 2px 0 14px 44px; color: var(--muted); }
.steps-list > li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border: 3px solid var(--ink); border-radius: 8px;
  background: var(--soft); color: var(--muted); text-align: center; line-height: 26px; font-size: 16px; }
.steps-list > li.now::before { background: #ffbf00; color: #fff; text-shadow: var(--ol); }
.steps-list > li.done::before { content: "✓"; background: #22b800; color: #fff; }
.steps-list > li > b { display: block; font-weight: 400; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.steps-list .codebox .code { font-size: 24px; }
.st.review { color: #5a2a8a; background: #f1e6ff; border-color: #c9a6f5; }
.st.question { color: #0b3d73; background: #e3efff; border-color: #9cc3ff; }
.vlist td .link.mini { display: block; margin-top: 4px; text-align: left; }
.vchk { margin-top: 6px; font-size: 13px; }
.vchk summary { cursor: pointer; color: var(--muted); }
.checks { list-style: none; margin: 4px 0 0; padding: 0; }
.checks li { position: relative; padding: 1px 0 1px 20px; color: var(--ink); white-space: normal; }
.checks li::before { position: absolute; left: 2px; top: 1px; font-weight: 700; }
.checks li.y::before { content: "✓"; color: #158a2e; }
.checks li.n::before { content: "✗"; color: #d0102b; }
.checks li.u::before { content: "•"; color: var(--muted); }
.ask { border: 3px solid var(--ink); border-radius: 12px; background: #eef5ff; padding: 12px 14px; margin-bottom: 16px; }
.ask-h { font-size: 13px; color: #0b3d73; margin-bottom: 4px; }
.ask p { font-size: 16px; margin: 0 0 8px; }
.ask textarea.inp { min-height: 70px; resize: vertical; font-size: 16px; letter-spacing: 0; }
.ask .btn { margin-top: 8px; }
.cab-tabs .tab i { background: #ff3346; }
