/* The paper theme for the app pages: profile, report, dashboard and the play redirect.
 *
 * These load dbo.css, which is served from the deploy root rather than this repo and so cannot be changed on a
 * branch. It is entirely token-driven, which is the way in: redefining its custom properties converts every rule
 * it has, including the markup only a signed-in player ever sees, without touching a single selector.
 *
 * Two scopes, because dbo.css has one --text and the page has two grounds. :root is the dark leather desk the
 * sheets lie on. .panel is a sheet, and redefining the same tokens there repoints everything inside it to ink. */

:root{
  /* the desk */
  --ground:#130d08;
  --text:#c7b48c; --text-dim:#a08f6d; --silver:#e7d6b4;
  --stone:#8a7050; --stone-dark:#3a2115; --stone-light:#c7b48c;
  --aqua:#b8862b; --aqua-dim:#a07828; --aqua-deep:#6b4a2a;
  --border:rgba(184,134,43,.38); --border-strong:rgba(184,134,43,.6);
  --glow:none; --shadow:0 24px 48px rgba(0,0,0,.6);
  --gold:#d9b25a; --gold-fill:rgba(184,134,43,.14); --gold-fill-hover:rgba(184,134,43,.28);
  --gold-border:rgba(184,134,43,.5); --gold-border-strong:rgba(184,134,43,.85);
  --amber:#d9b25a; --red:#e0897f;
  --panel:#e9dab6; --panel-soft:#e7d6ae;
  --title:'Cinzel',Georgia,serif;
  --ui:'EB Garamond',Georgia,'Times New Roman',serif;
}
:root:lang(ru){--title:'Roboto Condensed',sans-serif;--ui:'Roboto','Segoe UI',sans-serif}

/* dbo.css paints four teal radials and a starfield over the whole page. One warm pool instead; long reading wants
   a still background. */
body::before{background:radial-gradient(70% 50% at 50% 8%,rgba(120,86,46,.30),transparent 70%),var(--ground)!important}
body::after{display:none}
.wm{filter:drop-shadow(0 0 40px rgba(184,134,43,.25));opacity:.05}

/* A sheet of parchment laid on the desk, with the deckle, the inner rule and the shadow the home page's panels
   have. Everything inside it is ink, which is what the second token block is for. */
.panel,.note,.noteb,.srv,.ctl,dialog{
  --text:#2b1d12; --text-dim:#5a4632; --silver:#2b1d12;
  --stone:#5e4930; --stone-dark:#b89e76; --stone-light:#5a4632;
  --aqua:#7e2a1e; --aqua-dim:#7e2a1e; --aqua-deep:#5e4930;
  --border:#bfa677; --border-strong:#b89e76;
  --glow:none; --shadow:none;
  --gold:#2b1d12; --gold-fill:rgba(190,168,126,.35); --gold-fill-hover:rgba(190,168,126,.55);
  --gold-border:#b89e76; --gold-border-strong:#5e4930;
  --amber:#693f07; --red:#7e2a1e;
  color:#2b1d12;
}

.panel{
  background:linear-gradient(180deg,#d2bc8f,#e9dab6 3%,#e7d6ae 97%,#d2bc8f);
  border:3px solid #bfa677;
  outline:1px solid #b89e76;
  outline-offset:-10px;
  border-radius:2px;
  box-shadow:6px 8px 0 rgba(0,0,0,.4),0 24px 48px rgba(0,0,0,.55);
  backdrop-filter:none;
}

/* A note is a strip of the same paper. It has to be SOLID: a note sits on the desk as often as inside a panel,
   and a translucent parchment over dark leather composites to a muddy brown that no ink reads on. */
.note,.noteb{background:#e7d6ae;border:1px solid #bfa677;border-left:3px solid #7e2a1e}
.note b,.noteb b{color:#7e2a1e}

/* dbo.css letters a button in --gold, which on parchment is a rule colour rather than an ink */
.panel button,.panel a.btn,.panel a.dl,
.srv button,.ctl button,dialog button,
.srv a.btn,.ctl a.btn{color:#2b1d12}
.panel button.ghost,.panel a.ghost,.srv button.ghost,.ctl button.ghost,dialog button.ghost{color:#5a4632}
.panel code,.panel pre{background:rgba(190,168,126,.4);color:#2b1d12;border-color:#b89e76}
.panel .note,.panel .noteb{background:#dcc89c;border-color:#b89e76;border-left-color:#7e2a1e}
.panel .badge{background:rgba(190,168,126,.4);color:#2b1d12;border-color:#b89e76}
.panel .ok{color:#2d5424}
.panel .meta{color:#5e4930}

/* The furniture outside the sheets reads on leather */
h1,.addr{color:#e7d6b4}
h2{color:#d9b25a}
.panel h2,.note h2,.srv h2,.ctl h2,dialog h2{color:#2b1d12}
.tag{color:#c7b48c}
footer{color:#c7b48c}
footer a{color:#d9b25a}
.hero .tag,.hero p{color:#c7b48c}

/* the dashboard's own surfaces: a caution strip, a search field and the inputs inside a control dialog */
.warn{background:#e7d6ae;border:1px solid #bfa677;border-left:3px solid #693f07;color:#2b1d12}
.warn b{color:#693f07}
input,select,textarea{background:#e7d6ae;border:1px solid #b89e76;color:#2b1d12}
input::placeholder,textarea::placeholder{color:#5e4930}
