Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Mystic Style/styles.css

Template page
Revision as of 21:04, 4 December 2026 by Saarn (talk | contribs) (Transferring Gatekeep style make a more general use style sheet setup.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/* Mystic Style — arcane interface, obsidian with crimson accent. Loaded with {{Mystic Style}}. */

/* Shared colours and font. Also set on the header, grid and intro so they still work without the wrapper. */
.m-page, .m-header, .m-grid, .m-intro {
 --m-bg: #0d0b10; --m-panel: #131016; --m-border: #3a3340; --m-border-hover: #6a2a3a;
 --m-text: #d8d2dc; --m-muted: #9a92a0; --m-heading: #f1ecf3; --m-link: #c4bdc9;
 --m-accent: #ff5c74; --m-accent-line: #d8344f;
 color: var(--m-text);
 font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
.m-page * { box-sizing: border-box; }
.m-page {
 padding: 1.25rem; border: 1px solid var(--m-border); line-height: 1.7;
 background-color: var(--m-bg);
 background-image: linear-gradient(rgba(58,51,64,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(58,51,64,.16) 1px, transparent 1px);
 background-size: 32px 32px;
}

/* Header banner ({{Mystic Header}}) */
.m-header { position: relative; z-index: 0; overflow: hidden; padding: 3rem 1.5rem; border: 1px solid var(--m-border); text-align: center;
 background: radial-gradient(ellipse at 50% 130%, rgba(216,52,79,.28), transparent 60%), #08070a;
 box-shadow: 0 0 24px rgba(216,52,79,.15), inset 0 0 40px rgba(0,0,0,.6); }

/* Star layers: three tiles drifting at different speeds and fading in and out */
.m-header::before, .m-header::after, .m-header-stars { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none; }
.m-header::before {
 background-image:
  radial-gradient(circle at 20px 30px, #ff5c74 0, #ff5c74 1px, transparent 1.5px),
  radial-gradient(circle at 90px 120px, #ff5c74 0, #ff5c74 1px, transparent 1.5px),
  radial-gradient(circle at 150px 60px, #ff5c74 0, #ff5c74 1px, transparent 1.5px),
  radial-gradient(circle at 40px 150px, #ff5c74 0, #ff5c74 1px, transparent 1.5px),
  radial-gradient(circle at 120px 20px, #ff5c74 0, #ff5c74 1px, transparent 1.5px),
  radial-gradient(circle at 170px 160px, #ff5c74 0, #ff5c74 1px, transparent 1.5px);
 background-size: 180px 180px;
 animation: m-drift-1 70s linear infinite, m-twinkle 6s ease-in-out infinite;
}
.m-header::after {
 background-image:
  radial-gradient(circle at 60px 80px, #ffb3be 0, #ff5c74 1px, rgba(255,92,116,.35) 2px, transparent 3.5px),
  radial-gradient(circle at 200px 40px, #ffb3be 0, #ff5c74 1px, rgba(255,92,116,.35) 2px, transparent 3.5px),
  radial-gradient(circle at 130px 190px, #ffb3be 0, #ff5c74 1px, rgba(255,92,116,.35) 2px, transparent 3.5px),
  radial-gradient(circle at 230px 220px, #ffb3be 0, #ff5c74 1px, rgba(255,92,116,.35) 2px, transparent 3.5px),
  radial-gradient(circle at 20px 230px, #ffb3be 0, #ff5c74 1px, rgba(255,92,116,.35) 2px, transparent 3.5px);
 background-size: 260px 260px;
 animation: m-drift-2 110s linear infinite, m-twinkle 9s ease-in-out -3s infinite;
}
.m-header-stars {
 background-image:
  radial-gradient(circle at 80px 260px, #ffd0d7 0, #ff5c74 1.5px, rgba(216,52,79,.3) 4px, transparent 7px),
  radial-gradient(circle at 250px 120px, #ffd0d7 0, #ff5c74 1.5px, rgba(216,52,79,.3) 4px, transparent 7px),
  radial-gradient(circle at 300px 300px, #ffd0d7 0, #ff5c74 1.5px, rgba(216,52,79,.3) 4px, transparent 7px),
  radial-gradient(circle at 170px 50px, #ffd0d7 0, #ff5c74 1.5px, rgba(216,52,79,.3) 4px, transparent 7px);
 background-size: 340px 340px;
 animation: m-drift-3 160s linear infinite, m-twinkle 13s ease-in-out -6s infinite;
}

/* Rune rings and symbol behind the title */
.m-header-sigil { position: absolute; top: 50%; left: 50%; z-index: -1; width: 16rem; height: 16rem; margin: -8rem 0 0 -8rem;
 border: 1px solid rgba(216,52,79,.25); border-radius: 50%; pointer-events: none; animation: m-spin 80s linear infinite; }
.m-header-sigil::after { content: ""; position: absolute; top: -1.5rem; right: -1.5rem; bottom: -1.5rem; left: -1.5rem;
 border: 1px dotted rgba(255,92,116,.18); border-radius: 50%; }
.m-header-symbol { position: absolute; top: 1.2rem; right: 1.2rem; bottom: 1.2rem; left: 1.2rem;
 opacity: .45; filter: drop-shadow(0 0 8px rgba(255,92,116,.8)); animation: m-spin 50s linear infinite reverse; }
.m-header-symbol span, .m-header-symbol a, .m-header-symbol img { display: block; width: 100%; height: 100%; max-width: none; }

.m-header-eyebrow { color: var(--m-accent); font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; text-shadow: 0 0 8px rgba(255,92,116,.5); }
.m-header-title { margin: .3rem 0; padding-left: .28em; color: var(--m-heading); font-size: clamp(2rem, 6vw, 3rem);
 letter-spacing: .28em; line-height: 1.15; text-transform: uppercase; animation: m-pulse 6s ease-in-out infinite; }
.m-header-rule { position: relative; width: 10rem; height: 1px; margin: 1rem auto;
 background: linear-gradient(90deg, transparent 0, var(--m-accent-line) 38%, transparent 45%, transparent 55%, var(--m-accent-line) 62%, transparent 100%);
 filter: drop-shadow(0 0 3px rgba(255,92,116,.8)); }
.m-header-rule::before { content: "\25C6"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
 color: var(--m-accent); font-size: .6rem; line-height: 1; text-shadow: 0 0 6px var(--m-accent); }
.m-header-text { color: var(--m-muted); font-style: italic; }

/* Cards */
.m-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.m-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 1.4rem 1.3rem; border: 1px solid var(--m-border);
 background: linear-gradient(180deg, rgba(216,52,79,.06), transparent 40%), var(--m-panel); transition: border-color .25s, box-shadow .25s; }
.m-card::before { content: ""; position: absolute; top: -1px; left: 10%; right: 10%; height: 1px;
 background: linear-gradient(90deg, transparent, var(--m-accent), transparent); box-shadow: 0 0 8px var(--m-accent); opacity: .6; transition: opacity .25s; }
.m-card::after { content: ""; position: absolute; top: -1px; right: -1px; bottom: -1px; left: -1px; pointer-events: none;
 background:
  linear-gradient(var(--m-accent-line), var(--m-accent-line)) top left / .8rem 1px no-repeat,
  linear-gradient(var(--m-accent-line), var(--m-accent-line)) top left / 1px .8rem no-repeat,
  linear-gradient(var(--m-accent-line), var(--m-accent-line)) top right / .8rem 1px no-repeat,
  linear-gradient(var(--m-accent-line), var(--m-accent-line)) top right / 1px .8rem no-repeat,
  linear-gradient(var(--m-accent-line), var(--m-accent-line)) bottom left / .8rem 1px no-repeat,
  linear-gradient(var(--m-accent-line), var(--m-accent-line)) bottom left / 1px .8rem no-repeat,
  linear-gradient(var(--m-accent-line), var(--m-accent-line)) bottom right / .8rem 1px no-repeat,
  linear-gradient(var(--m-accent-line), var(--m-accent-line)) bottom right / 1px .8rem no-repeat; }
.m-card:hover { border-color: var(--m-border-hover); box-shadow: 0 0 20px rgba(216,52,79,.18), inset 0 0 20px rgba(216,52,79,.06); }
.m-card:hover::before { opacity: 1; }
.m-card-title { margin-bottom: .7rem; padding-bottom: .5rem; border-bottom: 1px solid var(--m-border); color: var(--m-heading);
 font-size: 1.05rem; letter-spacing: .16em; text-transform: uppercase; }
.m-card-title::before { content: "\25C7"; margin-right: .6rem; color: var(--m-accent); text-shadow: 0 0 6px var(--m-accent); }
.m-card-text { margin-bottom: 1rem; color: var(--m-muted); font-size: .95rem; font-style: italic; }
.m-label { margin-bottom: .45rem; color: var(--m-accent-line); font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; }

/* Sub-section links */
.m-chips ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.m-chips li { margin: 0; }
.m-chips a { display: block; padding: .15rem .65rem; border: 1px solid var(--m-border); background: rgba(13,11,16,.6);
 color: var(--m-link); font-size: .85rem; text-decoration: none; transition: color .2s, border-color .2s, box-shadow .2s; }
.m-chips a:hover { border-color: var(--m-accent-line); color: var(--m-accent); box-shadow: 0 0 10px rgba(216,52,79,.35); }
.m-chips a.new { border-style: dashed; color: #7d6a70; font-style: italic; }

/* "All [X]" buttons — the ▸ is added here, so leave arrows out of the link text */
.m-card-more { margin-top: auto; padding-top: 1.3rem; }
.m-card-more a { display: inline-block; padding: .5rem 1.2rem; border: 1px solid var(--m-accent-line); background: rgba(216,52,79,.06);
 color: var(--m-accent); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
 box-shadow: 0 0 10px rgba(216,52,79,.2), inset 0 0 10px rgba(216,52,79,.1); transition: background .2s, color .2s, box-shadow .2s, text-shadow .2s; }
.m-card-more a:hover { background: rgba(216,52,79,.16); color: var(--m-heading); text-shadow: 0 0 8px rgba(255,92,116,.7);
 box-shadow: 0 0 18px rgba(255,92,116,.45), inset 0 0 12px rgba(216,52,79,.2); }

/* Placeholder card */
.m-card--soon { border-style: dashed; background: rgba(13,11,16,.5); }
.m-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .2rem .7rem; border: 1px solid var(--m-border);
 color: var(--m-muted); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.m-badge::before { content: ""; width: 6px; height: 6px; background: var(--m-accent); box-shadow: 0 0 8px var(--m-accent); animation: m-blink 2.4s ease-in-out infinite; }

/* Animations */
@keyframes m-drift-1 { from { background-position: 0 0; } to { background-position: 180px -180px; } }
@keyframes m-drift-2 { from { background-position: 0 0; } to { background-position: 260px -260px; } }
@keyframes m-drift-3 { from { background-position: 0 0; } to { background-position: 340px -340px; } }
@keyframes m-twinkle { 0% { opacity: .15; } 50% { opacity: 1; } 100% { opacity: .15; } }
@keyframes m-spin { to { transform: rotate(360deg); } }
@keyframes m-pulse {
 0%, 100% { text-shadow: 0 0 10px rgba(255,92,116,.45), 0 0 28px rgba(216,52,79,.25); }
 50% { text-shadow: 0 0 14px rgba(255,92,116,.75), 0 0 40px rgba(216,52,79,.45); }
}
@keyframes m-blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

@media (max-width: 640px) {
 .m-page { padding: .8rem; }
 .m-grid { grid-template-columns: 1fr; }
 .m-header { padding: 2.4rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
 .m-header::before, .m-header::after, .m-header-stars, .m-header-sigil, .m-header-symbol, .m-header-title, .m-badge::before { animation: none; }
 .m-card, .m-card::before, .m-chips a, .m-card-more a { transition: none; }
}
@media print {
 .m-page, .m-header, .m-card { background: none; box-shadow: none; }
 .m-header-stars, .m-header-sigil, .m-header::before, .m-header::after { display: none; }
}

/* Section pages: intro line, wide cards, sub-groups and unlinked tags */
.m-intro { max-width: 42rem; margin: 0 auto 1.4rem; color: var(--m-muted); font-style: italic; text-align: center; }
.m-card--wide { grid-column: 1 / -1; }
.m-subgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.m-subgroup { min-width: 0; padding: .9rem 1rem; border: 1px solid var(--m-border); background: rgba(13,11,16,.5); }
.m-subhead { margin-bottom: .55rem; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.m-subhead a { color: var(--m-accent); text-decoration: none; text-shadow: 0 0 6px rgba(255,92,116,.4); transition: color .2s, text-shadow .2s; }
.m-subhead a:hover { color: var(--m-heading); text-shadow: 0 0 8px rgba(255,92,116,.7); }
.m-tags ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.m-tags li { margin: 0; padding: .15rem .65rem; border: 1px solid var(--m-border); color: var(--m-muted); font-size: .85rem; font-style: italic; }
@media (max-width: 640px) {
 .m-subgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
 .m-subhead a { transition: none; }
}

/* Character lists pulled in with Special:PrefixIndex */
.m-chips .mw-prefixindex-list { columns: auto; column-width: auto; }
.m-chips .mw-prefixindex-nav { margin-top: .6rem; font-size: .85rem; }