/* The path and ascension ceremony (ceremony.js): a dark full screen, the choice, then the transformation and the stone windows. */
.cer { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; align-items: center; gap: 10px; overflow-y: auto; overscroll-behavior: contain;
  padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom)); background: rgba(6, 6, 8, .97); opacity: 0; transition: opacity .35s; }
.cer.on { opacity: 1; }
.cer > * { width: 100%; max-width: 440px; }
.cer-head { text-align: center; }
.cer-head small { display: block; font: 400 14px Pixelify, serif; color: #8fd3ff; letter-spacing: 1px; }
.cer.ascend .cer-head small { color: #ffd76a; }
.cer-head b { display: block; font: 400 28px/1.1 Pixelify, serif; color: #ffd76a; text-shadow: 2px 0 #0c0d0e, -2px 0 #0c0d0e, 0 2px #0c0d0e, 0 -2px #0c0d0e, 0 0 18px rgba(255, 190, 80, .45); }
.cer-lead { margin: 0; text-align: center; font: italic 15px/1.3 Vollkorn, serif; color: #d8cfb8; }
.cer-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cer-path { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 8px 10px; text-align: center; cursor: pointer; color: #f4f1ea; border-radius: 6px;
  background: linear-gradient(180deg, #3c3f44 0%, #2a2c30 55%, #1e1f22 100%); border: 3px solid #6b5226; box-shadow: 0 0 0 2px #0c0d0e, inset 0 2px 0 #565a60;
  transition: border-color .2s, transform .2s, box-shadow .2s; }
.cer-path.on { border-color: #ffd76a; transform: translateY(-3px); box-shadow: 0 0 0 2px #0c0d0e, inset 0 2px 0 #565a60, 0 0 18px rgba(255, 210, 100, .45); }
.cer-art { min-height: 100px; display: flex; align-items: flex-end; justify-content: center; }
.cer-art.big { min-height: 150px; }
.cer-path > b { font: 400 19px Pixelify, serif; color: #ffd76a; text-shadow: 1px 1px 0 #0a0a0c; }
.cer-path > p { margin: 0; font: italic 13px/1.25 Vollkorn, serif; color: #d8cfb8; }
.cer-bonus { font: 400 12px/1.3 Pixelify, serif; color: #9fe39a; text-shadow: 1px 1px 0 #0a0a0c; }
.cer-skills { width: 100%; display: flex; flex-direction: column; gap: 2px; margin-top: 2px; border-top: 1px solid rgba(201, 154, 69, .3); padding-top: 4px; }
.cer-skills div { display: flex; gap: 6px; align-items: baseline; text-align: left; font: 13px Vollkorn, serif; color: #cfc7b8; }
.cer-skills div span { font: 400 11px Pixelify, serif; color: #8c8577; white-space: nowrap; }
.cer-skills div.first b { color: #ffe9a8; }
.cer-canvas { display: block; height: min(40vh, 300px); max-width: 440px; image-rendering: pixelated;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%); }
.cer-flash { position: fixed; inset: 0; z-index: 401; background: #fff; pointer-events: none; animation: cer-flash .9s ease-out forwards; }
.cer.ascend .cer-flash { background: #fff6d8; }
@keyframes cer-flash { from { opacity: .95; } to { opacity: 0; } }
.cer-title { text-align: center; margin-top: -10px; opacity: 0; transform: scale(.6); transition: opacity .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.cer-title.on { opacity: 1; transform: none; }
.cer-title b { display: block; font: 400 34px/1.1 Pixelify, serif; color: #ffd76a; text-shadow: 3px 0 #0c0d0e, -3px 0 #0c0d0e, 0 3px #0c0d0e, 0 -3px #0c0d0e, 0 0 22px rgba(255, 190, 80, .55); }
.cer.path .cer-title b { color: #bfe6ff; text-shadow: 3px 0 #0c0d0e, -3px 0 #0c0d0e, 0 3px #0c0d0e, 0 -3px #0c0d0e, 0 0 22px rgba(120, 200, 255, .6); }
.cer-title small { display: block; font: italic 15px Vollkorn, serif; color: #e6dfd2; }
.cer-body { display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .4s; }
.cer-body.on { opacity: 1; transform: none; }
.cer-stat { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 3.4em; gap: 8px; align-items: baseline; padding: 2px 0; }
.cer-stat span { color: #f4f1ea; }
.cer-stat i { font: 400 14px Digits, monospace; color: #8c8577; font-style: normal; }
.cer-stat i::after { content: " →"; font-family: Pixelify, serif; }
.cer-stat b { font: 400 16px Digits, monospace; color: #ffe66a; }
.cer-stat em { font: 400 13px Digits, monospace; color: #9fe39a; font-style: normal; text-align: right; white-space: nowrap; }
.cer-note { margin: 4px 0 0; font: 14px/1.3 Vollkorn, serif; color: #d8cfb8; text-shadow: none; }
.cer-skill { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 3px 0; }
.cer-skill + .cer-skill { border-top: 1px solid rgba(201, 154, 69, .25); }
.cer-skill b { color: #ffe9a8; } .cer-skill .pm { font: 400 13px Digits, monospace; color: #9cc8ff; }
.cer-skill small, .cer-skill em { grid-column: 1 / -1; font: 13px/1.3 Vollkorn, serif; color: #d8cfb8; text-shadow: none; }
.cer-skill em { font-style: normal; color: #c9b88f; } .cer-skill em.on { color: #9fe39a; }
.cer .bend-go { justify-content: center; }
@media (max-width: 360px) { .cer-paths { gap: 6px; } .cer-path > p { display: none; } }
