/* ==========================================================================
   Portal Ramalan — tampilan "observatorium malam": tinta biru-malam & emas
   Semua aturan dibatasi di dalam .pr-app agar tidak bentrok dengan tema.
   ========================================================================== */

.pr-app {
	--pr-ink: #0f1128;
	--pr-ink-2: #161937;
	--pr-ink-3: #1f2347;
	--pr-line: rgba(212, 180, 106, .2);
	--pr-line-2: rgba(239, 230, 210, .09);
	--pr-gold: #d4b46a;
	--pr-gold-2: #f0d99a;
	--pr-text: #efe6d2;
	--pr-muted: #a49fb8;
	--pr-rose: #e08f7d;
	--pr-sage: #8fc39b;
	--pr-paper: #f4ecd9;
	--pr-paper-ink: #2a2440;
	--el-kayu: #86bb8f;
	--el-api: #e57c62;
	--el-tanah: #d9b660;
	--el-logam: #cfd3dc;
	--el-air: #86a9e6;
	--pr-r: 18px;
	--pr-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
	--pr-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	position: relative;
	box-sizing: border-box;
	width: min(1120px, calc(100vw - 24px)) !important;
	max-width: none !important;
	margin: 8px 0 32px calc(50% - min(560px, 50vw - 12px)) !important;
	padding: 0 clamp(16px, 3vw, 36px) 8px;
	border-radius: 26px;
	color: var(--pr-text);
	font-family: var(--pr-sans);
	font-size: 16px;
	line-height: 1.6;
	text-align: left;
	isolation: isolate;
	overflow: hidden;
	background:
		radial-gradient(1200px 520px at 85% -10%, rgba(120, 94, 190, .28), transparent 60%),
		radial-gradient(900px 600px at -10% 20%, rgba(40, 90, 160, .22), transparent 60%),
		var(--pr-ink);
}

/* Judul halaman bawaan tema disembunyikan: aplikasi punya judulnya sendiri. */
body.pr-page .wp-block-post-title,
body.pr-page .entry-title,
body.pr-page .page-title { display: none !important; }

/* Bintang halus */
.pr-app::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: .55;
	background-image:
		radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 72% 8%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 38% 42%, var(--pr-gold-2) 50%, transparent 51%),
		radial-gradient(1px 1px at 88% 36%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 22% 72%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 64% 66%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 93% 84%, var(--pr-gold-2) 50%, transparent 51%),
		radial-gradient(1px 1px at 5% 92%, #fff 50%, transparent 51%);
	background-size: 420px 420px;
}

.pr-app *, .pr-app *::before, .pr-app *::after { box-sizing: border-box; }
.pr-app p { margin: 0 0 .8em; }
.pr-app p:last-child { margin-bottom: 0; }
.pr-app a { color: inherit; text-decoration: none; box-shadow: none; }
.pr-app ul, .pr-app ol { margin: 0; padding: 0; list-style: none; }
.pr-app h1, .pr-app h2, .pr-app h3 { color: var(--pr-text); letter-spacing: 0; text-transform: none; margin: 0; }
.pr-app b, .pr-app strong { font-weight: 600; }
.pr-app [hidden] { display: none !important; }
.pr-app :focus-visible { outline: 2px solid var(--pr-gold); outline-offset: 2px; }

/* ---------- Tipografi ---------- */
.pr-display {
	font-family: var(--pr-serif) !important;
	font-weight: 600 !important;
	font-size: clamp(32px, 4.6vw, 54px) !important;
	line-height: 1.05 !important;
	margin: 0 0 .35em !important;
	text-wrap: balance;
}
.pr-h2 { font-family: var(--pr-serif) !important; font-weight: 600 !important; font-size: clamp(24px, 3vw, 32px) !important; line-height: 1.15 !important; }
.pr-h3 { font-family: var(--pr-serif) !important; font-weight: 600 !important; font-size: 23px !important; line-height: 1.2 !important; margin: 0 0 .4em !important; }
.pr-eyebrow, .pr-kicker {
	display: block;
	margin: 0 0 .7em;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--pr-gold);
}
.pr-lede { font-size: 17.5px; color: #d9d0c0; max-width: 62ch; }
.pr-small { font-size: 14px; }
.pr-muted { color: var(--pr-muted); }
.pr-app .pr-center { text-align: center; margin-left: auto; margin-right: auto; }
.pr-han { font-family: "Noto Serif SC", "Songti SC", serif; color: var(--pr-gold); font-weight: 500; }
.pr-keys { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--pr-gold-2); opacity: .85; }
.pr-advice { padding-left: 14px; border-left: 2px solid var(--pr-gold); font-style: italic; font-family: var(--pr-serif); font-size: 19px; line-height: 1.4; color: #f3e9cf; }
.pr-warn { color: var(--pr-rose); }
.pr-link { color: var(--pr-gold-2) !important; border-bottom: 1px solid rgba(240, 217, 154, .35); }
.pr-link:hover { border-bottom-color: var(--pr-gold-2); }

/* ---------- Navigasi ---------- */
.pr-nav {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 0;
	margin-bottom: clamp(20px, 3vw, 36px);
	border-bottom: 1px solid var(--pr-line-2);
}
.pr-brand { display: flex; align-items: center; gap: 10px; font-family: var(--pr-serif); font-size: 22px; font-weight: 600; white-space: nowrap; }
.pr-brand-mark {
	display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	border: 1px solid var(--pr-line); color: var(--pr-gold); font-size: 18px;
	background: radial-gradient(circle at 30% 30%, rgba(212, 180, 106, .25), transparent 70%);
}
.pr-nav-links { display: flex; gap: 4px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.pr-nav-links a {
	padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--pr-muted); white-space: nowrap;
	transition: color .2s, background .2s;
}
.pr-nav-links a:hover { color: var(--pr-text); }
.pr-nav-links a.active { color: var(--pr-ink); background: var(--pr-gold); }
.pr-nav-user { display: flex; align-items: center; gap: 10px; }
.pr-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pr-ink-3); border: 1px solid var(--pr-line); font-weight: 600; color: var(--pr-gold-2); }
.pr-logout { font-size: 14px; color: var(--pr-muted); }
.pr-logout:hover { color: var(--pr-text); }

/* ---------- Komponen dasar ---------- */
.pr-main { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 26px); }
.pr-panel {
	position: relative;
	padding: clamp(18px, 2.4vw, 28px);
	border-radius: var(--pr-r);
	background: linear-gradient(180deg, rgba(31, 35, 71, .82), rgba(22, 25, 55, .82));
	border: 1px solid var(--pr-line-2);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px -24px rgba(0, 0, 0, .6);
}
.pr-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 24px); }
.pr-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 24px); }
.pr-narrow { max-width: 620px; margin: 0 auto; width: 100%; }

.pr-app .pr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--pr-gold);
	background: linear-gradient(180deg, var(--pr-gold-2), var(--pr-gold));
	color: #1a1530 !important; font: 600 15px/1 var(--pr-sans); letter-spacing: .01em; cursor: pointer;
	text-transform: none; box-shadow: 0 8px 22px -10px rgba(212, 180, 106, .7);
	transition: transform .15s, box-shadow .2s, opacity .2s;
}
.pr-app .pr-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(212, 180, 106, .85); }
.pr-app .pr-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.pr-app .pr-btn-ghost { background: transparent; color: var(--pr-gold-2) !important; box-shadow: none; border-color: var(--pr-line); }
.pr-app .pr-btn-ghost:hover { border-color: var(--pr-gold); box-shadow: none; }
.pr-app .pr-btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.pr-app .pr-btn-block { width: 100%; }
.pr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pr-actions form { margin: 0; }

.pr-alert { padding: 14px 18px; border-radius: 12px; font-size: 15px; }
.pr-alert ul { list-style: none; margin: 0; padding: 0; }
.pr-alert-error { background: rgba(224, 143, 125, .12); border: 1px solid rgba(224, 143, 125, .45); color: #ffd9cf; }
.pr-alert-ok { background: rgba(143, 195, 155, .12); border: 1px solid rgba(143, 195, 155, .45); color: #d9f5df; }

/* ---------- Formulir ---------- */
.pr-form { display: flex; flex-direction: column; gap: 14px; }
.pr-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.pr-field > span { font-size: 13.5px; font-weight: 500; color: #d8cfbf; }
.pr-field em { font-style: normal; color: var(--pr-muted); font-weight: 400; }
.pr-app .pr-field input, .pr-app .pr-field select {
	width: 100%; min-height: 46px; margin: 0; padding: 10px 14px;
	border-radius: 12px; border: 1px solid rgba(239, 230, 210, .16);
	background: rgba(9, 10, 26, .55); color: var(--pr-text);
	font: 400 15.5px/1.3 var(--pr-sans); box-shadow: none; color-scheme: dark;
	transition: border-color .2s, background .2s;
}
.pr-app .pr-field input:focus, .pr-app .pr-field select:focus { border-color: var(--pr-gold); outline: none; background: rgba(9, 10, 26, .8); }
.pr-app .pr-field input:disabled { opacity: .4; }
.pr-app .pr-field input::placeholder { color: #77728a; }
.pr-app .pr-field select option { background: var(--pr-ink-2); color: var(--pr-text); }
.pr-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #d8cfbf; cursor: pointer; margin: 0; }
.pr-app .pr-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--pr-gold); }
.pr-row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Masuk & Daftar ---------- */
.pr-auth { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 12px; }
.pr-auth-intro { padding-top: 12px; }
.pr-methods { display: flex; flex-direction: column; gap: 18px; margin-top: 28px !important; }
.pr-methods li { display: flex; gap: 16px; align-items: flex-start; }
.pr-methods b { display: block; font-family: var(--pr-serif); font-size: 22px; }
.pr-methods small { display: block; color: var(--pr-muted); font-size: 14.5px; line-height: 1.5; }
.pr-mi {
	flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
	border: 1px solid var(--pr-line); color: var(--pr-gold); font-family: "Noto Serif SC", serif; font-size: 20px;
	background: linear-gradient(160deg, rgba(212, 180, 106, .14), transparent);
}
.pr-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 20px; border-radius: 999px; background: rgba(9, 10, 26, .55); border: 1px solid var(--pr-line-2); }
.pr-app .pr-tabs button {
	min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--pr-muted);
	font: 600 14.5px var(--pr-sans); cursor: pointer; box-shadow: none; text-transform: none; padding: 0;
}
.pr-app .pr-tabs button[aria-selected="true"] { background: var(--pr-ink-3); color: var(--pr-gold-2); box-shadow: 0 0 0 1px var(--pr-line); }

/* ---------- Terkunci ---------- */
.pr-locked { text-align: center; padding: clamp(36px, 6vw, 72px) 24px; overflow: hidden; }
.pr-locked .pr-lede { margin: 0 auto 1.4em; }
.pr-locked .pr-actions { justify-content: center; }
.pr-locked-orb {
	width: 120px; height: 120px; margin: 0 auto 24px; border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, var(--pr-gold-2), var(--pr-gold) 35%, #6b4f8f 75%, transparent 76%);
	box-shadow: 0 0 80px rgba(212, 180, 106, .35);
	animation: pr-float 6s ease-in-out infinite;
}
@keyframes pr-float { 50% { transform: translateY(-8px); } }

/* ---------- Portalmu ---------- */
.pr-hero {
	display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(18px, 3vw, 40px); align-items: stretch;
}
.pr-hero-text { padding: 6px 0; }
.pr-hero-score {
	display: flex; flex-direction: column; justify-content: center; gap: 12px;
	padding: 24px; border-radius: var(--pr-r); border: 1px solid var(--pr-line);
	background: radial-gradient(120% 100% at 100% 0%, rgba(212, 180, 106, .16), transparent 60%), rgba(22, 25, 55, .7);
}
.pr-stars { display: inline-flex; gap: 6px; font-size: 30px; line-height: 1; }
.pr-stars .on { color: var(--pr-gold-2); text-shadow: 0 0 14px rgba(240, 217, 154, .55); }
.pr-stars .off { color: rgba(239, 230, 210, .16); }
.pr-lucky { display: grid; gap: 8px; margin: 6px 0 0; }
.pr-lucky div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; font-size: 14.5px; }
.pr-lucky dt { color: var(--pr-muted); }
.pr-lucky dd { margin: 0; display: flex; align-items: center; gap: 8px; }
.pr-swatch { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); }

.pr-tips { display: flex; flex-direction: column; gap: 10px; margin-top: 14px !important; }
.pr-tips li { display: grid; grid-template-columns: 82px 1fr; gap: 10px; font-size: 14.5px; padding-top: 10px; border-top: 1px solid var(--pr-line-2); }
.pr-tips b { color: var(--pr-gold-2); font-weight: 600; }

.pr-hexhead { display: flex; gap: 18px; align-items: center; margin-bottom: 12px; }
.pr-hexnum { display: block; font-size: 12.5px; color: var(--pr-muted); margin-bottom: 2px; }
.pr-hexlines { display: flex; flex-direction: column; gap: 6px; width: 64px; flex: none; }
.pr-line { display: flex; gap: 10px; height: 8px; }
.pr-line i { flex: 1; border-radius: 2px; background: var(--pr-gold-2); box-shadow: 0 0 10px rgba(240, 217, 154, .25); }
.pr-line.moving i { background: var(--pr-rose); box-shadow: 0 0 12px rgba(224, 143, 125, .6); }
.pr-details summary { cursor: pointer; font-size: 14.5px; color: #d8cfbf; margin: 8px 0; list-style-position: outside; }
.pr-details[open] summary { margin-bottom: 12px; }
.pr-details summary.pr-kicker { margin: 0; }

.pr-dailycard-row { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: start; margin-bottom: 14px; }
.pr-dailycard .pr-tcard { width: 112px; }
.pr-dailycard .pr-tname, .pr-dailycard .pr-tmeta { display: none; }

.pr-cycle .pr-h3 { font-size: 26px !important; }

.pr-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pr-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.pr-pillar {
	display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px 18px; text-align: center;
	border-radius: 16px; background: rgba(9, 10, 26, .45); border: 1px solid var(--pr-line-2);
}
.pr-pillar.is-dm { border-color: var(--pr-gold); background: linear-gradient(180deg, rgba(212, 180, 106, .14), rgba(9, 10, 26, .45)); }
.pr-pillar.is-empty { opacity: .55; }
.pr-pillar-lab { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--pr-gold); font-weight: 600; }
.pr-pillar-god { font-size: 12.5px; color: var(--pr-muted); min-height: 1.6em; }
.pr-pillar-sub { font-size: 12.5px; color: #cfc6b5; margin-bottom: 6px; }
.pr-glyph { font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; font-size: clamp(36px, 5vw, 50px); line-height: 1.1; color: var(--pr-text); }
.pr-glyph.pr-el-kayu, .pr-el-kayu > b { color: var(--el-kayu); }
.pr-glyph.pr-el-api, .pr-el-api > b { color: var(--el-api); }
.pr-glyph.pr-el-tanah, .pr-el-tanah > b { color: var(--el-tanah); }
.pr-glyph.pr-el-logam, .pr-el-logam > b { color: var(--el-logam); }
.pr-glyph.pr-el-air, .pr-el-air > b { color: var(--el-air); }
.pr-traits { display: grid; gap: 10px; margin: 14px 0 0; }
.pr-traits div { display: grid; grid-template-columns: 104px 1fr; gap: 10px; font-size: 14.5px; padding-top: 10px; border-top: 1px solid var(--pr-line-2); }
.pr-traits dt { color: var(--pr-gold-2); }
.pr-traits dd { margin: 0; }
.pr-bars { display: grid; gap: 10px; margin-bottom: 16px; }
.pr-bar { display: grid; grid-template-columns: 82px 1fr 40px; gap: 12px; align-items: center; font-size: 14px; }
.pr-bar-lab b { font-family: "Noto Serif SC", serif; font-weight: 500; }
.pr-bar-track { height: 10px; border-radius: 99px; background: rgba(239, 230, 210, .07); overflow: hidden; }
.pr-bar-fill { display: block; height: 100%; border-radius: 99px; transform-origin: left; animation: pr-grow 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.pr-bar-fill.pr-el-kayu { background: var(--el-kayu); }
.pr-bar-fill.pr-el-api { background: var(--el-api); }
.pr-bar-fill.pr-el-tanah { background: var(--el-tanah); }
.pr-bar-fill.pr-el-logam { background: var(--el-logam); }
.pr-bar-fill.pr-el-air { background: var(--el-air); }
@keyframes pr-grow { from { transform: scaleX(0); } }
.pr-bar-val { text-align: right; color: var(--pr-muted); font-variant-numeric: tabular-nums; }
.pr-el { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--pr-line-2); background: rgba(9, 10, 26, .45); font-size: 13px; margin: 2px; }

.pr-history { display: flex; flex-direction: column; }
.pr-history li + li { border-top: 1px solid var(--pr-line-2); }
.pr-history a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 2px; transition: color .2s; }
.pr-history a:hover .pr-history-title { color: var(--pr-gold-2); }
.pr-history-title { flex: 1 1 200px; font-size: 15px; }
.pr-history time { font-size: 12.5px; color: var(--pr-muted); }
.pr-history-cards { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; order: 3; }
.pr-history-cards i { font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: rgba(9, 10, 26, .5); color: var(--pr-muted); }
.pr-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; padding: 3px 10px; border-radius: 99px; background: rgba(212, 180, 106, .14); color: var(--pr-gold-2); }
.pr-tag-pasangan { background: rgba(224, 143, 125, .14); color: #f6c1b4; }

/* ---------- Kartu Tarot ---------- */
.pr-tcard { margin: 0; width: 150px; perspective: 900px; text-align: center; container-type: inline-size; }
.pr-tflip {
	position: relative; aspect-ratio: 120 / 190; transform-style: preserve-3d;
	transition: transform .95s cubic-bezier(.3, .7, .2, 1);
	transition-delay: var(--d, 0ms);
}
.pr-tcard.is-flipped .pr-tflip { transform: rotateY(180deg); }
.pr-tback, .pr-tfront { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.pr-tback, .pr-fan-card {
	background:
		radial-gradient(circle at 50% 50%, transparent 17%, var(--pr-gold) 17.5%, var(--pr-gold) 18.5%, transparent 19%),
		radial-gradient(circle at 50% 50%, var(--pr-gold-2) 0 4%, transparent 4.5%),
		repeating-conic-gradient(from 0deg at 50% 50%, rgba(212, 180, 106, .16) 0 7.5deg, transparent 7.5deg 15deg),
		linear-gradient(160deg, #2c2463, #151436 70%);
	border: 1px solid rgba(212, 180, 106, .55);
	box-shadow: inset 0 0 0 4px #1a1840, inset 0 0 0 5px rgba(212, 180, 106, .45);
}
.pr-tfront { transform: rotateY(180deg); background: #100c2a; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .7); display: flex; flex-direction: column; }
.pr-tface { flex: 1; transition: transform .4s; }
/* Kartu terbalik: seluruh wajah kartu (termasuk pita nama) diputar 180°, seperti kartu fisik. */
.pr-tcard.is-rev .pr-tfront { transform: rotateY(180deg) rotate(180deg); }
.pr-tname { position: absolute; left: 16%; right: 16%; bottom: 9.4%; height: 7.4%; display: flex; align-items: center; justify-content: center; font-family: var(--pr-serif); font-weight: 700; font-size: 7.4cqw; line-height: 1; color: #f6e3a8; letter-spacing: .02em; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.pr-art-num { font-family: var(--pr-serif); font-size: 21px; font-weight: 700; letter-spacing: .08em; }
.pr-tpos { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pr-gold); font-weight: 600; margin-bottom: 10px; min-height: 1.4em; }
.pr-tmeta { margin-top: 10px; font-size: 12.5px; color: var(--pr-muted); }
.pr-tmeta b { color: var(--pr-rose); font-weight: 600; }

.pr-cardsvg { width: 100%; height: 100%; display: block; }
.pr-c-bg { fill: var(--pr-paper); }
.pr-c-frame { fill: none; stroke: var(--pr-paper-ink); stroke-width: .8; opacity: .55; }
.pr-c-num { font-family: var(--pr-serif); font-size: 15px; font-weight: 700; fill: var(--pr-paper-ink); }
.pr-c-rays line { stroke: #b48a3a; stroke-width: 1.4; stroke-linecap: round; }
.pr-c-ring { fill: none; stroke: #b48a3a; stroke-width: 1.4; }
.pr-c-ring2 { fill: rgba(180, 138, 58, .12); stroke: var(--pr-paper-ink); stroke-width: .6; }
.pr-c-sym { font-size: 30px; fill: var(--pr-paper-ink); font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", serif; }
.pr-c-rule { stroke: #b48a3a; stroke-width: .8; }
.pr-c-icon { fill: none; stroke: var(--pr-paper-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pr-suit-tongkat .pr-c-icon { stroke: #a0442c; }
.pr-suit-piala .pr-c-icon { stroke: #2d5aa0; }
.pr-suit-pedang .pr-c-icon { stroke: #4a4f63; }
.pr-suit-koin .pr-c-icon { stroke: #8a6a1c; }

/* Kipas pemilihan kartu */
.pr-spreads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
.pr-spreads legend { padding: 0; margin-bottom: 12px; }
.pr-spread-opt { position: relative; cursor: pointer; margin: 0; }
.pr-spread-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pr-spread-opt > span {
	display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 14px;
	border: 1px solid var(--pr-line-2); background: rgba(22, 25, 55, .7); transition: border-color .2s, background .2s;
}
.pr-spread-opt b { font-family: var(--pr-serif); font-size: 19px; font-weight: 600; }
.pr-spread-opt em { font-family: var(--pr-sans); font-style: normal; font-size: 12px; color: var(--pr-gold); margin-left: 4px; }
.pr-spread-opt small { font-size: 13px; color: var(--pr-muted); line-height: 1.45; }
.pr-spread-opt input:checked + span { border-color: var(--pr-gold); background: linear-gradient(180deg, rgba(212, 180, 106, .16), rgba(22, 25, 55, .7)); }
.pr-spread-opt input:focus-visible + span { outline: 2px solid var(--pr-gold); outline-offset: 2px; }

.pr-tarot { display: flex; flex-direction: column; gap: 22px; }
.pr-tarot-form { gap: 22px; }
.pr-fan-wrap { padding: 18px 0 6px; }
.pr-fan-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.pr-fan-head .pr-kicker { margin: 0; }
.pr-fan-head b { color: var(--pr-gold-2); font-size: 14px; }
.pr-fan {
	position: relative; display: flex; justify-content: safe center; padding: 56px 40px 84px;
	overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: var(--pr-gold) transparent;
}
.pr-app .pr-fan-card {
	--rot: 0deg; --y: 0px;
	flex: none; width: 66px; aspect-ratio: 120 / 190; margin: 0 0 0 -52px; padding: 0; border-radius: 7px; cursor: pointer;
	transform: translateY(var(--y)) rotate(var(--rot)); transform-origin: 50% 120%;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, filter .2s, opacity .3s;
	box-shadow: inset 0 0 0 3px #1a1840, inset 0 0 0 4px rgba(212, 180, 106, .45), -4px 0 10px -4px rgba(0, 0, 0, .7);
	min-height: 0; font-size: 0;
}
.pr-app .pr-fan-card:first-child { margin-left: 0; }
.pr-app .pr-fan-card:hover, .pr-app .pr-fan-card:focus-visible { transform: translateY(calc(var(--y) - 22px)) rotate(var(--rot)); z-index: 2; filter: brightness(1.2); }
.pr-app .pr-fan-card.is-picked { transform: translateY(calc(var(--y) - 40px)) rotate(var(--rot)); z-index: 3; box-shadow: inset 0 0 0 3px #1a1840, inset 0 0 0 4px var(--pr-gold-2), 0 0 22px rgba(240, 217, 154, .75); }
.pr-fan.is-full .pr-fan-card:not(.is-picked) { opacity: .4; cursor: default; }
.pr-fan.is-shuffling .pr-fan-card { transform: translateY(-10px) rotate(0deg) translateX(calc((var(--i) - 38) * -6px)); }
.pr-picked { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; min-height: 34px; }
.pr-picked span { font-size: 12.5px; padding: 6px 12px; border-radius: 99px; border: 1px dashed var(--pr-line); color: var(--pr-muted); }
.pr-picked span.ok { border-style: solid; border-color: var(--pr-gold); color: var(--pr-gold-2); }

/* Hasil bacaan */
.pr-reading { display: flex; flex-direction: column; gap: 26px; }
.pr-reading-head { text-align: center; max-width: 760px; margin: 0 auto; }
.pr-reading-head .pr-lede { margin: 0 auto; }
.pr-spread { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(14px, 3vw, 32px); padding: 8px 0 4px; }
.pr-spread .pr-tcard { width: clamp(120px, 17vw, 168px); }
.pr-spread-cinta { max-width: 820px; margin: 0 auto; }
.pr-interp { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; opacity: 0; transition: opacity .8s .3s; }
.pr-reading.is-revealed .pr-interp { opacity: 1; }
.pr-interp .pr-synth, .pr-interp .pr-actions { grid-column: 1 / -1; }
.pr-interp .pr-actions { justify-content: center; }
.pr-rev { font-family: var(--pr-sans); font-size: 12px; font-weight: 600; color: var(--pr-rose); letter-spacing: .06em; text-transform: uppercase; margin-left: 6px; }
.pr-synth { border-color: var(--pr-line); background: radial-gradient(100% 140% at 0% 0%, rgba(212, 180, 106, .14), transparent 60%), rgba(22, 25, 55, .82); }
.pr-synth p { font-family: var(--pr-serif); font-size: 20px; line-height: 1.45; }

/* ---------- Ramal Pasangan ---------- */
.pr-match { display: flex; flex-direction: column; gap: 24px; }
.pr-amp { font-style: italic; color: var(--pr-gold); }
.pr-match-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(14px, 3vw, 36px); align-items: center; }
.pr-person { text-align: center; }
.pr-person .pr-glyph { display: block; font-size: 58px; margin-bottom: 4px; }
.pr-minipillars { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.pr-minipillars span { font-family: "Noto Serif SC", serif; font-size: 14px; padding: 4px 7px; border-radius: 8px; background: rgba(9, 10, 26, .5); color: #d8cfbf; }
.pr-score { position: relative; width: 190px; display: grid; justify-items: center; }
.pr-score svg { width: 170px; height: 170px; transform: rotate(-90deg); }
.pr-score-track { fill: none; stroke: rgba(239, 230, 210, .08); stroke-width: 8; }
.pr-score-fill {
	fill: none; stroke: var(--pr-gold-2); stroke-width: 8; stroke-linecap: round;
	stroke-dasharray: var(--p) 100; filter: drop-shadow(0 0 8px rgba(240, 217, 154, .5));
	animation: pr-ring 1.6s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes pr-ring { from { stroke-dasharray: 0 100; } }
.pr-score-num { position: absolute; top: 52px; display: flex; align-items: baseline; font-family: var(--pr-serif); }
.pr-score-num b { font-size: 56px; font-weight: 600; line-height: 1; }
.pr-score-num small { font-size: 22px; color: var(--pr-gold); }
.pr-score-tier { margin-top: 10px; padding: 6px 14px; border-radius: 99px; background: rgba(212, 180, 106, .16); color: var(--pr-gold-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.pr-factors { display: flex; flex-direction: column; gap: 14px; }
.pr-factor-head { display: flex; justify-content: space-between; gap: 10px; }
.pr-pts { font-weight: 700; font-size: 13px; padding: 2px 9px; border-radius: 99px; background: rgba(239, 230, 210, .08); color: var(--pr-muted); height: fit-content; }
.pr-pts.pos { background: rgba(143, 195, 155, .16); color: var(--pr-sage); }
.pr-pts.neg { background: rgba(224, 143, 125, .16); color: var(--pr-rose); }
.pr-match .pr-hexcard, .pr-match .pr-synth { margin-bottom: 14px; }
.pr-match .pr-actions { justify-content: center; }
.pr-match-form { align-items: start; }
.pr-match-form > div { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Footer ---------- */
.pr-foot { margin-top: clamp(26px, 4vw, 40px); padding: 18px 0 14px; border-top: 1px solid var(--pr-line-2); font-size: 12.5px; color: var(--pr-muted); text-align: center; }


/* ---------- Mode situs penuh (dengan tema Portal Ramalan) ---------- */
.pr-app.pr-full {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	border-radius: 0;
	overflow: visible;
	overflow-x: clip;
	padding-inline: max(clamp(16px, 3vw, 36px), calc((100% - 1120px) / 2));
}
.pr-full .pr-main { flex: 1; }
.pr-full .pr-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(15, 17, 40, .84);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 0 0 100vmax rgba(15, 17, 40, .84);
	clip-path: inset(0 -100vmax);
}
body.admin-bar .pr-full .pr-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .pr-full .pr-nav { top: 46px; } }
.pr-full .pr-foot {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 16px;
	text-align: center;
}
.pr-foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--pr-serif); font-size: 18px; color: var(--pr-text); }
.pr-foot-brand .pr-brand-mark { width: 28px; height: 28px; font-size: 14px; }
.pr-foot-copy { white-space: nowrap; }
@media (max-width: 720px) {
	.pr-full .pr-foot { grid-template-columns: 1fr; justify-items: center; }
}

/* Halaman tak ditemukan (dari tema) */
.pr-404 { text-align: center; padding: clamp(40px, 8vw, 96px) 16px; }
.pr-404 .pr-lede { margin: 0 auto 1.6em; }
.pr-404 .pr-actions { justify-content: center; }
.pr-404-num { font-family: var(--pr-serif); font-size: clamp(90px, 16vw, 170px); line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--pr-gold); margin-bottom: 18px; }
.pr-prose { max-width: 720px; margin: 0 auto; width: 100%; }
.pr-prose h1, .pr-prose h2, .pr-prose h3 { font-family: var(--pr-serif); margin: 1.2em 0 .5em; }
.pr-prose a { color: var(--pr-gold-2); text-decoration: underline; }

/* ---------- Responsif ---------- */
@media (max-width: 960px) {
	.pr-grid3 { grid-template-columns: 1fr 1fr; }
	.pr-grid3 > :first-child { grid-column: 1 / -1; }
	.pr-spreads { grid-template-columns: 1fr 1fr; }
	.pr-auth { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	.pr-app { border-radius: 18px; font-size: 15.5px; }
	.pr-nav { flex-wrap: wrap; gap: 10px; }
	.pr-nav-links { order: 3; width: 100%; margin: 0; }
	.pr-nav-user { margin-left: auto; }
	.pr-grid2, .pr-grid3, .pr-hero { grid-template-columns: 1fr; }
	.pr-pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
	.pr-pillar { padding: 12px 2px 14px; }
	.pr-pillar-god, .pr-pillar-sub { font-size: 10.5px; }
	.pr-match-top { grid-template-columns: 1fr 1fr; }
	.pr-score { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
	.pr-traits div, .pr-tips li { grid-template-columns: 1fr; gap: 2px; }
	.pr-fan { justify-content: flex-start; padding: 50px 18px 30px; }
	.pr-app .pr-fan-card { width: 58px; margin-left: -40px; }
	.pr-spread .pr-tcard { width: calc(50% - 10px); max-width: 160px; }
	.pr-spread-satu .pr-tcard { width: 60%; }
}
@media (max-width: 460px) {
	.pr-spreads { grid-template-columns: 1fr; }
	.pr-dailycard-row { grid-template-columns: 88px 1fr; }
	.pr-dailycard .pr-tcard { width: 88px; }
}
@media (prefers-reduced-motion: reduce) {
	.pr-app *, .pr-app *::before { animation: none !important; transition: none !important; }
}
