/* =====================================================================
   UNDEAD PLUS 4 — transições, carregamento, som, app, Arena do ranking,
   duelo de cartas, cadastro em etapas, Relógio do Reino, pergaminho das
   notícias e o modo inauguração.
   ===================================================================== */

/* ======================= 1-2. CARREGAMENTO / TRANSIÇÃO ======================= */
.upl {
  position: fixed; inset: 0; z-index: 20000; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(60% 60% at 50% 45%, #2a160c 0%, #0b0807 60%, #050403 100%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .45s ease, visibility 0s .45s;
}
.upl.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .35s ease; }
/* se o script não carregar, a tela some sozinha */
.upl.is-on:not(.is-js) { animation: upl-auto .4s ease 4s forwards; }
@keyframes upl-auto { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.upl-smoke {
  position: absolute; inset: -20%; opacity: .5;
  background: radial-gradient(30% 25% at 30% 60%, rgba(255, 120, 40, .18), transparent 70%), radial-gradient(35% 30% at 70% 40%, rgba(120, 60, 30, .25), transparent 70%);
  animation: upl-smoke 6s ease-in-out infinite alternate;
}
@keyframes upl-smoke { to { transform: translate(3%, -2%) scale(1.1); } }
.upl-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 20px; text-align: center; max-width: 520px; }
.upl-logo { width: min(320px, 70vw); height: auto; filter: drop-shadow(0 0 30px rgba(255, 120, 40, .45)); animation: upl-breathe 2.4s ease-in-out infinite; }
@keyframes upl-breathe { 50% { filter: drop-shadow(0 0 50px rgba(255, 150, 60, .75)); transform: scale(1.02); } }
.upl-ring { position: relative; width: 54px; height: 54px; }
.upl-ring i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: #f2b844; animation: upl-spin 1.1s linear infinite; }
.upl-ring i:nth-child(2) { inset: 7px; border-top-color: #ff6a2b; animation-duration: 1.6s; animation-direction: reverse; }
.upl-ring i:nth-child(3) { inset: 15px; border-top-color: #ffe08a; animation-duration: .8s; }
@keyframes upl-spin { to { transform: rotate(360deg); } }
.upl-tip { margin: 0; color: #d9ccb6; font-size: 15px; line-height: 1.5; }
.upl-tip b { display: block; font-family: var(--up-display, 'Cinzel', serif); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: #f2b844; margin-bottom: 4px; }
html.upl-leaving body > *:not(.upl) { filter: blur(4px) brightness(.6); transition: filter .35s ease; }

/* ======================= 3-4. SOM E APP ======================= */
.up-hbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: auto; min-width: 40px; height: 40px !important; padding: 0 10px !important; margin-right: 8px; border-radius: 10px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(242, 184, 68, .35); color: #f2d79a; cursor: pointer; font-size: 18px; line-height: 1 !important;
  transition: background .2s, border-color .2s, transform .2s;
}
.up-hbtn:hover { background: rgba(242, 184, 68, .15); border-color: #f2b844; transform: translateY(-1px); }
.up-hbtn.is-on { color: #1e1206; background: linear-gradient(180deg, #ffe08a, #f2b844); border-color: #6b3d0e; }
.up-hbtn small { font-size: 12px; font-weight: 800; text-transform: uppercase; }
.up-hbtn .up-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.up-hbtn .up-eq i { width: 3px; height: 30%; background: currentColor; border-radius: 1px; }
.up-hbtn.is-on .up-eq i { animation: up-eq .8s ease-in-out infinite; }
.up-hbtn.is-on .up-eq i:nth-child(2) { animation-delay: .2s; }
.up-hbtn.is-on .up-eq i:nth-child(3) { animation-delay: .4s; }
@keyframes up-eq { 50% { height: 100%; } }
.up-ios {
  position: fixed; left: 50%; bottom: 18px; z-index: 10010; transform: translateX(-50%); width: min(420px, calc(100% - 24px));
  padding: 14px 44px 14px 16px; border-radius: 14px; background: rgba(20, 15, 11, .96); border: 1px solid #f2b844; color: #f3e6c8; font-size: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
}
.up-ios button { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px !important; border: 0; background: none; color: #ccc; font-size: 20px; cursor: pointer; }

/* ======================= 5. ARENA DO RANKING ======================= */
.upa { position: relative; isolation: isolate; margin: 10px 0 30px; padding: 30px 10px 0; overflow: hidden; border-radius: 18px; min-height: 520px; }
.upa::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(50% 60% at 50% 30%, rgba(255, 170, 60, .16), transparent 70%), radial-gradient(80% 50% at 50% 100%, rgba(120, 40, 20, .35), transparent 70%), linear-gradient(180deg, rgba(10,8,7,.4), rgba(10,8,7,.85));
}
.upa-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.upa-row { display: flex; align-items: flex-end; justify-content: center; gap: 14px; min-height: 490px; }
.upa-slot { position: relative; flex: 1 1 0; max-width: 320px; display: flex; flex-direction: column; align-items: center; }
.upa-slot[data-pos="1"] { order: 2; }
.upa-slot[data-pos="2"] { order: 1; }
.upa-slot[data-pos="3"] { order: 3; }
.upa-art {
  position: relative; z-index: 2; width: 120%; height: 300px; object-fit: contain; object-position: center bottom; margin-bottom: -34px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.7)); opacity: 0; transform: translateY(40px) scale(.9);
  transition: opacity .9s ease, transform 1.1s var(--up-ease, ease), filter 1s;
}
.upa-slot[data-pos="1"] .upa-art { height: 360px; }
.upa.is-in .upa-art { opacity: 1; transform: none; }
.upa-slot[data-pos="3"] .upa-art { transition-delay: .2s; }
.upa-slot[data-pos="2"] .upa-art { transition-delay: .5s; }
.upa-slot[data-pos="1"] .upa-art { transition-delay: .85s; }
.upa-aura { position: absolute; left: 50%; bottom: 120px; z-index: 1; width: 280px; height: 280px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 55%, transparent), transparent 65%); filter: blur(10px); animation: upa-breathe 4s ease-in-out infinite; }
@keyframes upa-breathe { 50% { transform: translateX(-50%) scale(1.12); opacity: .75; } }
.upa-crown { position: absolute; top: -6px; left: 50%; z-index: 3; transform: translateX(-50%); font-size: 40px; color: #ffd34d; filter: drop-shadow(0 0 16px rgba(255, 210, 80, .9)); animation: upa-crown 2.6s ease-in-out infinite; }
@keyframes upa-crown { 50% { transform: translateX(-50%) translateY(-8px) rotate(-4deg); } }
.upa-ped {
  position: relative; z-index: 3; width: 100%; padding: 16px 14px 18px; text-align: center; border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, rgba(44, 34, 26, .96), rgba(16, 12, 10, .98)); border: 1px solid rgba(242, 184, 68, .35);
  box-shadow: 0 -10px 40px color-mix(in srgb, var(--c) 25%, transparent), 0 20px 40px rgba(0,0,0,.6);
  transform: translateY(100%); opacity: 0; transition: transform 1s var(--up-ease, ease), opacity .6s;
}
.upa.is-in .upa-ped { transform: none; opacity: 1; }
.upa-slot[data-pos="1"] .upa-ped { min-height: 190px; border-color: #ffd34d; box-shadow: 0 -10px 60px rgba(255, 200, 80, .4), 0 20px 40px rgba(0,0,0,.6); }
.upa-slot[data-pos="2"] .upa-ped { min-height: 150px; }
.upa-slot[data-pos="3"] .upa-ped { min-height: 120px; }
.upa-slot[data-pos="3"] .upa-ped { transition-delay: .0s; }
.upa-slot[data-pos="2"] .upa-ped { transition-delay: .25s; }
.upa-slot[data-pos="1"] .upa-ped { transition-delay: .55s; }
.upa-num { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--up-display, serif); font-weight: 900; font-size: 22px; color: #1e1206; box-shadow: 0 0 0 3px #1a120b, 0 8px 20px rgba(0,0,0,.6); }
.upa-slot[data-pos="1"] .upa-num { background: radial-gradient(circle at 35% 30%, #fff3c4, #ffd34d 45%, #a8700f); }
.upa-slot[data-pos="2"] .upa-num { background: radial-gradient(circle at 35% 30%, #ffffff, #cfd6e2 45%, #6f7a8c); }
.upa-slot[data-pos="3"] .upa-num { background: radial-gradient(circle at 35% 30%, #ffe0c4, #e59a5b 45%, #8a4b1d); }
.upa-name { display: block; margin-top: 14px; font-family: var(--up-display, serif); font-weight: 700; font-size: 22px; color: #fff3da !important; text-decoration: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upa-name:hover { color: #ffd27a !important; }
.upa-meta { display: block; font-size: 13px; color: #cdbfa8; }
.upa-meta b { color: #ffe2a0; }
.upa-on { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 800; color: #d9f58a; }
.upa-on i { width: 8px; height: 8px; border-radius: 50%; background: #bee61f; box-shadow: 0 0 8px #bee61f; }
.upa-prize { display: flex; justify-content: center; margin-top: 10px; }
.upa-prize .rwx-chip { transform: scale(.95); }
.upa + .topThree, .upa ~ .topThree { display: none !important; }
@media (max-width: 760px) {
  .upa { min-height: 0; }
  .upa-row { flex-wrap: wrap; min-height: 0; gap: 26px 10px; }
  .upa-slot { flex: 1 1 45%; max-width: none; }
  .upa-slot[data-pos="1"] { order: 0; flex-basis: 100%; }
  .upa-art { height: 200px; }
  .upa-slot[data-pos="1"] .upa-art { height: 260px; }
  .upa-slot .upa-ped { min-height: 0 !important; }
}

/* ======================= 6. DUELO DE CARTAS ======================= */
.upd-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.upd-form input { flex: 1 1 160px; min-height: 46px; padding: 8px 14px; border-radius: 10px; background: rgba(8,6,5,.7); border: 1px solid rgba(242,184,68,.35); color: #f3ece2; font-weight: 700; }
.upd-form input:focus { outline: none; border-color: #ffd27a; box-shadow: 0 0 0 3px rgba(242,184,68,.2); }
.upd {
  position: fixed; inset: 0; z-index: 10050; overflow-y: auto; padding: 30px 16px;
  background: radial-gradient(60% 60% at 50% 40%, rgba(80, 20, 10, .55), rgba(5,3,2,.94)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: upd-in .4s ease;
}
@keyframes upd-in { from { opacity: 0; } }
.upd-x { position: fixed; right: 16px; top: 16px; z-index: 2; width: 48px; height: 48px !important; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.6); color: #fff; font-size: 22px; cursor: pointer; }
.upd-title { text-align: center; margin: 0 0 20px; font-family: var(--up-display, serif); font-weight: 900; font-size: clamp(26px, 4vw, 44px); text-transform: uppercase; background: linear-gradient(180deg, #ffe7a8, #f2b844 48%, #c26a1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.upd-arena { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.upd-side { position: relative; transition: transform .6s var(--up-ease, ease), filter .6s; }
.upd-side .ucx-card { --rx: 0deg; --ry: 0deg; }
.upd-side.is-left { animation: upd-left .8s var(--up-ease, ease) both; }
.upd-side.is-right { animation: upd-right .8s var(--up-ease, ease) both; }
@keyframes upd-left { from { transform: translateX(-120px) rotate(-8deg); opacity: 0; } }
@keyframes upd-right { from { transform: translateX(120px) rotate(8deg); opacity: 0; } }
.upd-side.is-win { filter: drop-shadow(0 0 40px rgba(255, 200, 80, .7)); transform: scale(1.04); }
.upd-side.is-lose { filter: grayscale(.6) brightness(.7); transform: scale(.96); }
.upd-vs { position: relative; width: 110px; height: 110px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--up-display, serif); font-weight: 900; font-size: 40px; color: #fff3da; background: radial-gradient(circle, #ff6a2b, #7a1f0e 70%); box-shadow: 0 0 0 4px #1a120b, 0 0 60px rgba(255, 106, 43, .8); animation: upd-vs 1.4s ease-in-out infinite; }
@keyframes upd-vs { 50% { transform: scale(1.1); box-shadow: 0 0 0 4px #1a120b, 0 0 90px rgba(255, 106, 43, 1); } }
.upd-rows { max-width: 640px; margin: 26px auto 0; display: flex; flex-direction: column; gap: 8px; }
.upd-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(14,11,9,.8); border: 1px solid rgba(242,184,68,.2); opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .4s; }
.upd-row.is-in { opacity: 1; transform: none; }
.upd-row b { font-family: var(--up-display, serif); font-size: 22px; color: #fff3da; }
.upd-row b:last-child { text-align: right; }
.upd-row span { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #cdbfa8; text-align: center; }
.upd-row b.is-win { color: #bee61f; text-shadow: 0 0 14px rgba(190, 230, 31, .6); }
.upd-result { margin: 22px auto 0; text-align: center; font-family: var(--up-display, serif); font-size: clamp(22px, 3vw, 32px); color: #ffe2a0; opacity: 0; transform: scale(.8); transition: opacity .5s, transform .6s var(--up-ease, ease); }
.upd-result.is-in { opacity: 1; transform: none; }
.upd-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 760px) { .upd-arena .ucx-card { width: 240px; height: 350px; } .upd-vs { width: 70px; height: 70px; font-size: 26px; } }

/* ======================= 7. CADASTRO EM ETAPAS ======================= */
.upr-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
.upr-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: s; }
.upr-steps button {
  display: flex; align-items: center; gap: 10px; min-height: 48px; height: auto !important; padding: 8px 16px 8px 8px !important; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); color: #cdbfa8; font-weight: 800; font-size: 14px; line-height: 1.2 !important;
  transition: all .25s;
}
.upr-steps button i { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-family: var(--up-display, serif); background: rgba(0,0,0,.4); border: 1px solid rgba(242,184,68,.35); color: #f2d79a; }
.upr-steps button.is-on { color: #fff3da; border-color: #f2b844; background: linear-gradient(90deg, rgba(242,184,68,.25), rgba(242,184,68,.05)); box-shadow: 0 0 22px rgba(242, 184, 68, .25); }
.upr-steps button.is-on i { background: linear-gradient(180deg, #ffe08a, #f2b844); color: #1e1206; border-color: #6b3d0e; }
.upr-steps button.is-done i { background: #3d5a12; color: #d9f58a; border-color: #bee61f; }
.upr-step { display: none; animation: upr-in .5s var(--up-ease, ease); }
.upr-step.is-on { display: block; }
@keyframes upr-in { from { opacity: 0; transform: translateX(30px); } }
.upr-step-title { margin: 0 0 6px; font-family: var(--up-display, serif); font-size: 28px; color: #f6e2b0; }
.upr-step-sub { margin: 0 0 18px; color: #cdbfa8; }
.upr-classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.upr-cls {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; height: auto !important; padding: 12px 8px !important; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: #e8dfd0; font-weight: 800; font-size: 13px; line-height: 1.2 !important;
  transition: transform .25s var(--up-ease, ease), border-color .25s, box-shadow .25s;
}
.upr-cls img { width: 64px; height: 64px; object-fit: contain; transition: transform .3s; }
.upr-cls:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.upr-cls:hover img { transform: scale(1.12); }
.upr-cls.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: 0 0 26px color-mix(in srgb, var(--c) 40%, transparent); }
.upr-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.upr-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; height: auto !important; padding: 10px 24px !important; border-radius: 12px; font-weight: 900; font-size: 15px; text-transform: uppercase; cursor: pointer; line-height: 1.2 !important; transition: transform .2s, filter .2s; }
.upr-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.upr-btn-gold { color: #1e1206 !important; background: linear-gradient(180deg, #ffe08a, #f2b844 55%, #c9781f) !important; border: 0 !important; box-shadow: 0 10px 26px rgba(0,0,0,.5); }
.upr-btn-ghost { color: #f6ead0; background: rgba(20,15,11,.6); border: 1px solid rgba(242,184,68,.5); }
.upr-err { display: none; margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(198, 40, 58, .15); border: 1px solid rgba(255, 90, 90, .45); color: #ffc2c2; font-weight: 700; }
.upr-err.is-on { display: block; animation: upr-shake .4s; }
@keyframes upr-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.upr-field-bad .form-control, .upr-field-bad .form-select { border-color: #ff5a5a !important; box-shadow: 0 0 0 3px rgba(255, 90, 90, .2) !important; }
.upr-aside { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.upr-aside .ucx-card { width: 260px; height: 372px; }
.upr-aside .ucx-card .ucx-plate { bottom: 70px; }
.upr-aside small { color: #cdbfa8; text-align: center; }
.upr-aside .ucx-card.is-forging { animation: upr-forge 1.4s ease; }
@keyframes upr-forge { 30% { filter: brightness(2.2) drop-shadow(0 0 40px #ffb347); transform: rotateY(180deg) scale(1.05); } 100% { transform: rotateY(360deg); } }
@media (max-width: 991px) { .upr-wrap { grid-template-columns: 1fr; } .upr-aside { position: relative; top: 0; order: -1; } .upr-aside .ucx-card { width: 220px; height: 315px; } }

/* ======================= 8. RELÓGIO DO REINO ======================= */
.upk { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 34px; align-items: center; padding: 30px; }
.upk-dial { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; }
.upk-dial svg { width: 100%; height: 100%; overflow: visible; }
.upk-tick { cursor: pointer; transition: r .2s; }
.upk-tick:hover, .upk-tick.is-next { r: 9; }
.upk-tick.is-next { animation: upk-pulse 1.2s ease-in-out infinite; }
@keyframes upk-pulse { 50% { opacity: .5; } }
.upk-center { position: absolute; inset: 22%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px; background: radial-gradient(circle, rgba(30, 22, 16, .95), rgba(10, 8, 7, .95)); border: 1px solid rgba(242,184,68,.35); box-shadow: inset 0 0 40px rgba(0,0,0,.6), 0 0 40px rgba(255, 150, 50, .15); }
.upk-center small { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #cdbfa8; }
.upk-center b { font-family: var(--up-display, serif); font-size: clamp(16px, 2.2vw, 22px); color: #fff0d0; line-height: 1.15; margin: 4px 0; }
.upk-center strong { font-family: var(--up-display, serif); font-size: clamp(24px, 3.2vw, 36px); background: linear-gradient(180deg, #ffe7a8, #f2b844 48%, #c26a1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.upk-tip { position: absolute; z-index: 3; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: rgba(10,8,7,.95); border: 1px solid #f2b844; color: #fff3da; font-size: 13px; font-weight: 700; white-space: nowrap; transform: translate(-50%, -130%); }
.upk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.upk-list li { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); transition: background .2s, transform .2s; }
.upk-list li:hover { background: rgba(242,184,68,.07); transform: translateX(4px); }
.upk-list li:first-child { border-color: rgba(242,184,68,.5); background: rgba(242,184,68,.08); }
.upk-list time { font-family: var(--up-display, serif); font-size: 18px; color: #ffe2a0; }
.upk-list b { color: #fff3da; }
.upk-list em { font-style: normal; font-size: 12px; font-weight: 800; color: #cdbfa8; }
.upk-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: #cdbfa8; }
.upk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.upk-legend i { width: 10px; height: 10px; border-radius: 50%; }
@media (max-width: 860px) { .upk { grid-template-columns: 1fr; padding: 20px 14px; } }

/* ======================= 9. PERGAMINHO (notícias) ======================= */
.ups { position: relative; margin: 10px auto 0; max-width: 980px; }
.ups-rod {
  position: relative; z-index: 2; height: 26px; margin: 0 -18px; border-radius: 13px;
  background: linear-gradient(180deg, #8a5a22 0%, #e0a94e 35%, #6b3d12 70%, #3a200a 100%);
  box-shadow: 0 8px 18px rgba(0,0,0,.6), inset 0 1px 0 rgba(255, 230, 170, .5);
}
.ups-rod::before, .ups-rod::after { content: ""; position: absolute; top: -6px; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe7a8, #c9932e 45%, #5a3410); box-shadow: 0 4px 10px rgba(0,0,0,.6); }
.ups-rod::before { left: -14px; }
.ups-rod::after { right: -14px; }
.ups-paper {
  position: relative; overflow: hidden; margin: -6px 0; padding: 40px clamp(18px, 4vw, 50px) 36px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(120, 80, 40, .18), transparent 60%),
    linear-gradient(180deg, rgba(30, 22, 15, .96), rgba(18, 13, 9, .97));
  border-left: 1px solid rgba(242,184,68,.25); border-right: 1px solid rgba(242,184,68,.25);
  box-shadow: inset 0 20px 30px -20px rgba(0,0,0,.8), inset 0 -20px 30px -20px rgba(0,0,0,.8);
  transition: max-height 1.6s cubic-bezier(.6, .05, .2, 1);
}
.ups-seal {
  position: absolute; right: 26px; top: 22px; z-index: 3; width: 86px; height: 86px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px;
  font-family: var(--up-display, serif); font-size: 11px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: #ffd9c4;
  background: radial-gradient(circle at 35% 30%, #e0473a, #8e1a12 55%, #4a0805); box-shadow: 0 6px 16px rgba(0,0,0,.6), inset 0 0 0 4px rgba(0,0,0,.18);
  transform: rotate(-10deg) scale(0); animation: ups-seal .6s cubic-bezier(.3, 1.6, .5, 1) 1.4s forwards;
}
@keyframes ups-seal { to { transform: rotate(-10deg) scale(1); } }
.ups .full-news_title { font-family: var(--up-display, serif) !important; font-size: clamp(24px, 3vw, 36px) !important; color: #f6e2b0 !important; padding-right: 100px; }

/* ======================= 10. MODO INAUGURAÇÃO ======================= */
.upi {
  position: fixed; inset: 0; z-index: 15000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 20px; text-align: center;
  background: radial-gradient(60% 60% at 50% 50%, rgba(70, 25, 10, .9), rgba(5, 3, 2, .97));
  animation: upd-in .8s ease;
}
.upi-fx { position: absolute; inset: 0; pointer-events: none; }
.upi small { position: relative; font-size: 13px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; color: #f2b844; }
.upi-logo { position: relative; width: min(420px, 80vw); filter: drop-shadow(0 0 40px rgba(255, 120, 40, .6)); }
.upi-clock { position: relative; display: flex; gap: clamp(8px, 2vw, 22px); font-family: var(--up-display, serif); font-weight: 900; }
.upi-clock div { display: flex; flex-direction: column; align-items: center; min-width: clamp(70px, 14vw, 170px); padding: 10px; border-radius: 16px; background: rgba(0,0,0,.45); border: 1px solid rgba(242,184,68,.4); }
.upi-clock b { font-size: clamp(48px, 10vw, 140px); line-height: 1; background: linear-gradient(180deg, #ffe7a8, #f2b844 48%, #c26a1c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(255, 170, 60, .5)); }
.upi-clock span { font-size: 12px; letter-spacing: 3px; color: #cdbfa8; }
.upi.is-last .upi-clock b { animation: upi-beat 1s ease-in-out infinite; }
@keyframes upi-beat { 50% { transform: scale(1.12); filter: drop-shadow(0 0 60px rgba(255, 100, 40, 1)); } }
.upi-min { position: relative; white-space: nowrap; min-height: 44px; height: auto !important; padding: 10px 20px !important; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.5); color: #f3e6c8; font-weight: 800; cursor: pointer; }
.upi-pill { position: fixed; left: 50%; top: 96px; z-index: 1001; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; height: auto !important; border-radius: 999px; background: linear-gradient(180deg, #2a1a0e, #120b07); border: 1px solid #f2b844; color: #ffe2a0; font-family: var(--up-display, serif); font-weight: 900; font-size: 18px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 30px rgba(255, 150, 50, .35); }
.upi-pill i { width: 10px; height: 10px; border-radius: 50%; background: #ff4a3d; box-shadow: 0 0 10px #ff4a3d; animation: uph-pulse 1.2s infinite; }
.upi-gate { position: fixed; top: 0; bottom: 0; width: 50.5%; z-index: 15001; background: repeating-linear-gradient(90deg, #2a1a10 0 46px, #3a2414 46px 50px), linear-gradient(180deg, #3a2414, #120b07); box-shadow: inset 0 0 120px rgba(0,0,0,.8); transition: transform 2.4s cubic-bezier(.7, 0, .3, 1); }
.upi-gate::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18px; background: linear-gradient(90deg, #c9932e, #ffe7a8, #8a5a22); }
.upi-gate-l { left: 0; }
.upi-gate-l::after { right: 0; }
.upi-gate-r { right: 0; }
.upi-gate-r::after { left: 0; }
.upi-open .upi-gate-l { transform: translateX(-102%); }
.upi-open .upi-gate-r { transform: translateX(102%); }
.upi-seal { position: fixed; left: 50%; top: 50%; z-index: 15002; width: min(360px, 70vw); transform: translate(-50%, -50%); filter: drop-shadow(0 0 40px rgba(255, 120, 40, .8)); transition: transform 1.2s ease, opacity 1.2s ease; }
.upi-open .upi-seal { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
.upi-flash { position: fixed; inset: 0; z-index: 15003; pointer-events: none; background: radial-gradient(circle, #fff8e0, rgba(255, 170, 60, .6) 40%, transparent 70%); opacity: 0; }
.upi-open .upi-flash { animation: upi-flash 1.6s ease-out; }
@keyframes upi-flash { 10% { opacity: 1; } 100% { opacity: 0; } }
.upi-done { position: fixed; inset: 0; z-index: 15004; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; background: radial-gradient(60% 60% at 50% 50%, rgba(5,3,2,.55), rgba(5,3,2,.88)); opacity: 0; pointer-events: none; transition: opacity .8s 1.6s; }
.upi-done > * { transform: scale(.7); transition: transform 1s cubic-bezier(.3, 1.4, .5, 1) 1.6s; }
.upi-open .upi-done { opacity: 1; pointer-events: auto; }
.upi-open .upi-done > * { transform: none; }
.upi-done h2 { margin: 0 0 16px; font-family: var(--up-display, serif); font-weight: 900; text-transform: uppercase; font-size: clamp(32px, 6vw, 80px); line-height: 1; background: linear-gradient(180deg, #ffe7a8, #f2b844 48%, #c26a1c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px rgba(255, 170, 60, .7)); }
.upi-done .uph-btn { margin: 0 6px 8px; }
