/* Pranchas cinco e seis: paineis de aparencia, sem dados de servidor. */
.hud-preview {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 12px;
  background: #02080dcc;
  pointer-events: auto;
}
.hud-preview.closed { display: none; }
.hud-preview-frame {
  --chanfro: 16px;
  width: min(840px, 100%);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  display: grid;
  gap: 11px;
  padding: 16px;
  color: #eee0c0;
  background: linear-gradient(145deg, #ffea9e, #94661f 38%, #e9be62 72%, #754f1b);
  filter: drop-shadow(0 12px 28px #000d);
  scrollbar-width: thin;
  scrollbar-color: #c89c4c #082531;
}
.hud-preview-frame.friends-frame { width: min(900px, 100%); }
.hud-preview-frame::before {
  inset: 3px;
  background: linear-gradient(150deg, #0d3744, #041923 57%, #0a2b37);
  box-shadow: inset 0 0 0 1px #327183, inset 0 0 25px #001018;
}
.hud-preview-frame.ornate::after {
  inset: 5px;
  opacity: 1;
  background:
    radial-gradient(circle, #e4ffff 0 20%, #28dce9 27% 47%, #a67b32 54% 69%, transparent 74%) 0 50% / 14px 14px no-repeat,
    radial-gradient(circle, #e4ffff 0 20%, #28dce9 27% 47%, #a67b32 54% 69%, transparent 74%) 100% 50% / 14px 14px no-repeat,
    linear-gradient(#e8c572, #946a27) 12px 2px / calc(100% - 24px) 2px no-repeat,
    linear-gradient(#845d25, #d6ac55) 12px calc(100% - 2px) / calc(100% - 24px) 2px no-repeat;
}
.preview-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 4px 10px;
  border-bottom: 1px solid #a37b34;
}
.preview-head > .ic { width: 38px; height: 38px; color: #f7ca6b; }
.preview-head > div { flex: 1; min-width: 0; }
.preview-head h2 { margin: 0; color: #ffe5a2; font: bold 28px Georgia, serif; letter-spacing: 1px; text-transform: uppercase; }
.preview-head small { display: block; color: #bcd3d0; font-size: 11px; }
.preview-badge { padding: 4px 8px; border: 1px solid #44ceda; color: #9debf0; font-size: 10px; white-space: nowrap; }
.preview-close,
.friends-search button,
.friends-compose button {
  border: 1px solid #c49a48;
  background: linear-gradient(180deg, #173d48, #061a26);
  color: #ffdf91;
  cursor: var(--cur-default), pointer;
}
.preview-close { width: 32px; height: 32px; font: 23px/1 Georgia, serif; }
.preview-close:hover,
.preview-close:focus-visible { border-color: #48dce8; outline: 1px solid #48dce8; }
.preview-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.preview-tab {
  --chanfro: 8px;
  padding: 9px 5px;
  border: 0;
  clip-path: polygon(var(--chanfro) 0, calc(100% - var(--chanfro)) 0, 100% var(--chanfro), 100% calc(100% - var(--chanfro)), calc(100% - var(--chanfro)) 100%, var(--chanfro) 100%, 0 calc(100% - var(--chanfro)), 0 var(--chanfro));
  background: linear-gradient(180deg, #153d49, #061b27);
  box-shadow: inset 0 0 0 1px #b58b3d;
  color: #e4d6ba;
  font: bold 15px Georgia, serif;
  cursor: var(--cur-default), pointer;
}
.preview-tab:hover,
.preview-tab:focus-visible { box-shadow: inset 0 0 0 1px #47dce7; color: #fff0bb; }
.preview-tab.on { background: linear-gradient(180deg, #48512a, #1b2c1e); box-shadow: inset 0 0 0 1px #ffe298, 0 0 8px #d3a24266; color: #ffe39a; }
.preview-panel { min-width: 0; }
.pass-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 14px;
  border: 1px solid #a17a37;
  background: linear-gradient(90deg, #0e3743, #061b27);
}
.pass-seal { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid #f3cc72; border-radius: 50%; color: #ffe199; font-size: 24px; }
.pass-summary div:nth-child(2) { flex: 1; }
.pass-summary strong { display: block; color: #ffe09a; font: bold 19px Georgia, serif; }
.pass-summary small { color: #b5cbd0; }
.pass-summary > span { color: #f0c873; font: bold 13px Georgia, serif; }
.pass-scroll { margin-top: 9px; overflow-x: auto; border: 1px solid #9a7736; background: linear-gradient(#092b37, #041923); scrollbar-color: #c79a48 #092631; }
.pass-track { width: max-content; padding: 11px; }
.pass-row-title { margin-bottom: 6px; color: #dde3de; font: bold 13px Georgia, serif; text-transform: uppercase; }
.pass-row-title.premium { margin-top: 7px; color: #ffdb83; }
.pass-rewards,
.pass-nodes { display: grid; grid-template-columns: repeat(8, 82px); gap: 8px; }
.pass-reward {
  position: relative;
  height: 84px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid #8f763e;
  background: radial-gradient(circle at 50% 20%, #184454, #061a26 75%);
  color: #f2d591;
}
.pass-reward .ic { width: 32px; height: 32px; }
.pass-reward small { font-size: 10px; }
.pass-reward span { position: absolute; top: 2px; right: 4px; color: #ffe6a3; }
.pass-rewards.premium .pass-reward { border-color: #ddb05a; box-shadow: inset 0 0 8px #d9a44255; }
.pass-nodes { position: relative; margin: 10px 0; }
.pass-nodes::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #7b6639, #bca35d, #7b6639); }
.pass-nodes span {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  margin: auto;
  display: grid;
  place-items: center;
  border: 2px solid #b18c43;
  background: #0a2633;
  color: #e8d4ad;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.preview-note { margin: 10px 2px 2px; color: #adc6c9; font-size: 11px; }
.preview-empty { min-height: 210px; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 20px; border: 1px solid #8d7138; background: radial-gradient(ellipse at center, #113d49, #061b26 80%); text-align: center; }
.preview-empty .ic { width: 35px; height: 35px; color: #e2b861; }
.preview-empty strong { color: #ffe2a0; font: bold 18px Georgia, serif; }
.preview-empty p { max-width: 380px; margin: 0; color: #b9ced0; font-size: 12px; }
.friends-search { display: grid; grid-template-columns: minmax(0, 1fr) 38px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.friends-search input,
.friends-messages input { min-width: 0; border-color: #9b7838; background: #082631; color: #f4dfb7; }
.friends-search button { height: 36px; font: bold 22px Georgia, serif; }
.friends-search span { padding: 8px; border: 1px solid #687e72; color: #c3d8d7; font-size: 11px; white-space: nowrap; }
.friends-search :disabled,
.friends-compose :disabled { opacity: .6; cursor: default; }
.friends-messages { min-height: 315px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 8px; }
.friends-messages aside,
.friends-conversation { padding: 9px; border: 1px solid #8d7138; background: #061b27; }
.friends-messages aside p { color: #a7bec1; font-size: 11px; }
.friends-conversation { display: grid; grid-template-rows: 1fr auto; }
.friends-conversation .preview-empty { min-height: 215px; border: 0; }
.friends-compose { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.friends-compose button { padding: 0 16px; }

@media (max-width: 600px) {
  .hud-preview { padding: 5px; }
  .hud-preview-frame { max-height: calc(100dvh - 10px); padding: 10px; gap: 8px; }
  .preview-head { gap: 6px; }
  .preview-head > .ic { width: 25px; height: 25px; }
  .preview-head h2 { font-size: 19px; }
  .preview-head small { font-size: 9px; }
  .preview-badge { font-size: 8px; padding: 3px; }
  .preview-tab { font-size: 11px; padding: 8px 3px; }
  .pass-summary { padding: 8px; }
  .pass-summary strong { font-size: 15px; }
  .pass-summary small { font-size: 10px; }
  .friends-search { grid-template-columns: minmax(0, 1fr) 34px; }
  .friends-search span { grid-column: 1 / -1; }
  .friends-messages { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .friends-messages aside { padding: 5px; }
  .friends-messages aside p { margin: 4px; }
}
