/* InitiumMU website identity. Shared launcher palette; existing game components
   remain authoritative for inventory, rarity and account interactions. */
.pt {
  --layout-max: 1200px;
  --layout-sidebar: 224px;
  --layout-gutter: 16px;
  --text-faint: #b2a58e;
  --text-muted: #c0b39c;
  background-color: #100e0c;
  color: #d5c4a1;
}
.pt-frame { margin: 24px auto; }
.pt-hero {
  height: 190px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 22px 36px;
  background: linear-gradient(90deg, #0b0c0d 14%, #0b0c0d9c 60%, #0b0c0d33), url('assets/backgrounds/temple.webp') right 46%/72% auto no-repeat, #0b0c0d;
  border-top: 1px solid #80603a;
}
.pt-hero::before { background: linear-gradient(0deg, #0a0907b0, transparent 50%); pointer-events: none; }
.pt-hero__brand { position: relative; inset: auto; transform: none; flex: 0 0 180px; }
.pt-hero__logo { width: 180px; max-width: 100%; height: auto; }
.pt-hero__intro { position: relative; flex: 1; }
.pt-hero__intro .pt-hero__tagline { font: 400 25px/1.2 Georgia, serif; color: #f4e9c8; margin-bottom: 9px; }
.pt-hero__intro>p:last-child { color: #c0b8a9; font-size: 12px; margin: 0; }
.pt-hero__download { position: relative; flex: none; }
.pt-nav .mu-nav { height: 44px; }
.pt-nav .mu-nav__item { padding: 0 15px; font-size: 12px; }
.pt-nav .mu-nav__item.is-active::after { content: ''; position: absolute; bottom: 0; left: 16px; right: 16px; height: 2px; background: #b99859; }
.pt-body { padding: 20px; gap: 20px; background-size: 180px; }
.pt-main { padding: 18px; gap: 24px; overflow-x: visible; background: #0d0c0af5; font-size: 13px; line-height: 1.6; }
.pt-main>*, .pt-guide>* { min-width: 0; }
.pt-main h3 { font-size: 14px; }
.pt-main .mu-panel__title { font-size: 12px; color: #d8bf86; letter-spacing: .08em; }
.pt-main .mu-panel--plain>.mu-panel__head { padding-bottom: 10px; margin-bottom: 16px; }
.pt-main>h2, .pt-main .mu-pagetitle { font-size: 22px; color: #e8d6a4; }
.pt-main .pt-doc { font-size: 13px; line-height: 1.75; }
.pt-main .pt-doc p { margin-bottom: 16px; }
.pt-main .pt-doc h3 { margin: 20px 0 10px; }
.pt-main table { font-size: 12px; }
.pt-main th, .pt-main td { padding: 9px 7px; }
.pt-main .pt-scroll { max-width: 100%; }
.pt .mu-panel__extra, .pt .pt-note, .pt .pt-empty { color: #b2a58e; line-height: 1.6; }
.pt .mu-btn { min-height: 36px; height: auto; padding: 8px 15px; gap: 12px; font-size: 12px; }
.pt .mu-btn--primary { border: 1px solid #a0885c; border-image: none; background: linear-gradient(#76232a, #451319); box-shadow: inset 0 0 0 1px #210a0d, inset 0 2px 0 #ffffff14, 0 2px 5px #0008; color: #f4e9c8; }
.pt .mu-btn--primary:hover { background: #7f2931; filter: none; }
.pt .mu-input { min-height: 32px; }
.pt-form { gap: 10px; }
.pt-side .mu-panel__head { padding: 11px 10px; }
.pt-side .mu-panel__body { padding: 12px; }
.pt-side .mu-sidemenu__item { padding-top: 9px; padding-bottom: 9px; }
.pt-side { gap: 16px; }
.pt-counts { line-height: 1.7; }
.pt-adventure { position: relative; isolation: isolate; min-height: 360px; border: 1px solid #5a4933; background: #1c242b; overflow: hidden; }
.pt-adventure__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: -2; }
.pt-adventure::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #080d13d9, #080d1380 48%, transparent 76%); z-index: -1; }
.pt-adventure__copy { padding: 40px 30px; max-width: 480px; }
.pt-adventure .pt-adventure__copy h2 { color: #f4e9c8; font: 400 clamp(30px, 3.4vw, 44px)/1.13 Georgia, serif; letter-spacing: -.015em; margin: 0 0 18px; text-shadow: 0 2px 5px #0009; }
.pt-adventure__copy>p { color: #e0ddd5; font-size: 13px; line-height: 1.7; margin-bottom: 24px; }
.pt-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.pt .pt-text-link { font-size: 12px; color: #e8d6a4; }
.pt-paths { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block: 1px solid #51412a; background: #171410; }
.pt-paths>a { display: flex; align-items: center; gap: 10px; padding: 16px 12px; text-decoration: none; }
.pt-paths>a+a { border-left: 1px solid #3b3022; }
.pt-paths>a:hover { background: #241d14; }
.pt-paths strong { display: block; font-size: 11px; color: #e8d6a4; }
.pt-paths small { display: block; font-size: 10px; color: #b2a58e; margin-top: 3px; }
.pt-news-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.pt-news-card { background: #171410; border: 1px solid #463925; display: flex; flex-direction: column; }
.pt-news-card__image { position: relative; display: block; overflow: hidden; aspect-ratio: 16/9; background: #202831; }
.pt-news-card__image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pt-category { display: inline-block; padding: 4px 10px; border: 1px solid #9c7d44; background: #171410ed; color: #f4e9c8; font: 700 10px/1.5 var(--font-label); letter-spacing: .07em; text-transform: uppercase; }
.pt-news-card__image .pt-category { position: absolute; left: 12px; bottom: 12px; }
.pt-category--maintenance { border-color: #91a5ba; }
.pt-category--event { border-color: #c9ab6c; }
.pt-news-card__body { padding: 16px; display: flex; flex-direction: column; align-items: start; flex: 1; }
.pt-news-card__body time { font-size: 11px; color: #b2a58e; }
.pt-news-card__body h3 { margin: 8px 0 12px; }
.pt-news-card__body h3 a { color: #e8d6a4; }
.pt-news-card__body p { font-size: 12px; color: #c0b39c; }
.pt-news-card__body>.pt-text-link { margin-top: auto; padding-top: 12px; }
.pt-news-types { flex-wrap: wrap; gap: 8px; }
.pt-news-types a { border: 1px solid #51412a; padding: 7px 13px; min-height: 36px; }
.pt-news-types [aria-current=page] { background: #2b2318; color: #f4e9c8; }
.pt-article-art { position: relative; aspect-ratio: 3/1; overflow: hidden; margin-bottom: 24px; border: 1px solid #51412a; }
.pt-article-art img { width: 100%; height: 100%; object-fit: cover; }
.pt-article-art .pt-category { position: absolute; left: 16px; bottom: 16px; }
.pt-download-banner { display: flex; gap: 30px; align-items: center; padding: 28px; border: 1px solid #80603a; background: linear-gradient(90deg, #0b10163b, #0b1016f0 45%), url('assets/backgrounds/temple.webp') left 40%/cover; }
.pt-download-banner>img { width: 180px; height: auto; flex: none; }
.pt-download-banner>div { min-width: 0; }
.pt-download-banner h3 { color: #f4e9c8; font: 400 25px/1.2 Georgia,serif; margin: 0 0 14px; }
.pt-download-banner p { font-size: 12px; color: #ddd7ca; }
.pt-guide { gap: 20px; }
.pt-guide>nav { flex-basis: 155px; }
.pt-guide>article { flex-basis: 350px; }
.pt-game-capture { margin: 0 0 24px; background: #171410; border: 1px solid #51412a; }
.pt-game-capture img { display: block; width: 100%; height: auto; }
.pt-game-capture figcaption { padding: 12px; font-size: 11px; line-height: 1.6; color: #c0b39c; }
.pt-foot { padding: 24px; color: #b2a58e; font-size: 11px; }
.pt-foot__links { gap: 8px 12px; }
.pt-foot__brand { display: inline-block; margin: 12px 0; }
.pt-foot__brand img { display: block; width: 124px; height: auto; }
.pt :is(a,button,input,select,summary):focus-visible { outline: 2px solid #f4e9c8; outline-offset: 3px; }
.pt .pt-equipment, .pt .pt-stats { font-size: 11px; line-height: 1.5; }
.pt .pt-stats h3, .pt .pt-equipment h3 { font-size: 12px; }
.pt .pt-stats .pt-stat-row { margin: 0 0 9px!important; }
@media (max-width: 1000px) {
  .pt-frame { margin: 0; }
  .pt-hero { gap: 24px; padding-inline: 24px; }
  .pt-hero__download { display: none; }
  .pt-body { padding: 12px; gap: 12px; }
  .pt-main { padding: 14px; }
  .pt-paths { grid-template-columns: 1fr; }
  .pt-paths>a+a { border-left: 0; border-top: 1px solid #3b3022; }
  .pt-paths strong { font-size: 12px; }
}
@media (max-width: 760px) {
  .pt-hero { height: 158px; padding: 16px 20px; gap: 20px; background-size: auto, cover; }
  .pt-hero__brand { flex-basis: 154px; }
  .pt-hero__intro .pt-hero__tagline { font-size: 21px; }
  .pt-hero__intro>p:last-child { display: none; }
  .pt-body { grid-template-columns: minmax(0,1fr); padding: 10px; }
  .pt-main { padding: 12px; gap: 24px; }
  .pt-side { order: 2; }
  .pt-adventure { min-height: 360px; }
  .pt-adventure__copy { padding: 32px 22px; }
  .pt-adventure .pt-adventure__copy h2 { font-size: 38px; }
  .pt-news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pt-guide>nav { flex: 1 1 100%; }
  .pt-guide>nav .mu-sidemenu { display: flex; gap: 0; overflow-x: auto; }
  .pt-guide>nav .mu-sidemenu__item { flex: none; padding: 12px; }
  .pt-guide>article { flex: 1 1 100%; }
  .pt-download-banner { gap: 20px; padding: 20px; }
  .pt-foot__sep { display: none; }
}
@media (max-width: 480px) {
  .pt-hero { gap: 16px; padding: 14px; }
  .pt-hero__brand { flex-basis: 146px; }
  .pt-hero__intro .pt-hero__tagline { font-size: 20px; }
  .pt-nav .mu-nav__item { padding-inline: 12px; }
  .pt-body { padding: 7px; }
  .pt-main { padding: 10px; }
  .pt-news-grid { grid-template-columns: minmax(0,1fr); }
  .pt-adventure__copy { padding: 30px 18px; }
  .pt-adventure__art { object-position: 62% center; }
  .pt-adventure::before { background: linear-gradient(90deg, #080d13e6, #080d138c 65%, #080d1329); }
  .pt-adventure .pt-adventure__copy h2 { font-size: 34px; }
  .pt-actions { gap: 16px 12px; }
  .pt-download-banner { flex-direction: column; align-items: start; gap: 20px; background-position: center; }
  .pt-download-banner>img { width: 180px; }
  .pt-article-art { aspect-ratio: 2/1; }
}
/* A single announcement fills the row without leaving a vacant card column. */
@media (min-width: 761px) {
  .pt-news-card:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .pt-news-card:only-child .pt-news-card__image { height: 100%; min-height: 190px; }
}
.pt-doc>table { display: block; max-width: 100%; overflow-x: auto; }
.pt-center>form { width: 100%; max-width: 360px; }
@media (max-width: 480px) {
  .pt .mu-window { width: 100%; min-height: 0; border: 1px solid #80603a; border-image: none; padding: 24px 16px; background: url('assets/ui/newui_msgbox_back.jpg'); }
  .pt .mu-window__inner { margin: 0; }
  .pt .mu-window .mu-field { grid-template-columns: minmax(0, 1fr); }
  .pt .mu-window .mu-field__aside { grid-column: 1; }
  .pt .mu-window__actions { margin-top: 18px; }
}
.pt p a:not(.mu-btn):not(.pt-text-link), .pt-doc li>a { text-decoration: underline; text-underline-offset: 2px; }
.pt { background: linear-gradient(#100e0ccc, #100e0ccc), url('assets/ui/op1_stone.jpg') 0 0/180px, #100e0c; }
@media (max-width: 760px) {
  .pt-guide>nav .mu-sidemenu { flex-direction: row; }
}
/* Real item art replaces the empty-slot silhouettes, with the same hit targets. */
.pt-equipment .pt-item-slot:has(.pt-item-art) { background-color: #080807b3; box-shadow: inset 0 0 0 1px #5a4b34; }
/* Character sections use website-sized type and native coordinates, so fixed
   tooltips stay attached to the viewport rather than a transformed ancestor. */
.pt-profile-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pt-profile-heading h2 { font-size: 28px; color: #e8d6a4; }
.pt-profile-class { margin: 6px 0 0; color: #b2a58e; }
.pt-profile-level { padding: 8px 12px; border: 1px solid #665033; background: #211b13; white-space: nowrap; }
.pt-profile-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid #80603a; padding-bottom: 12px; margin-bottom: 24px; }
.pt-profile-tabs a { display: inline-flex; align-items: center; padding: 10px 20px; min-height: 44px; border: 1px solid #51412a; background: #171410; color: #d8bf86; font-weight: 700; }
.pt-profile-tabs a[aria-selected=true] { background: #37271c; color: #f4e9c8; border-color: #b99859; box-shadow: inset 0 -2px #b99859; }
.pt-profile-panel { margin-bottom: 24px; }
.pt-profile-panel[hidden] { display: none!important; }
.pt-profile-overview { display: grid; grid-template-columns: minmax(240px,1fr) minmax(220px,1fr); gap: 28px; }
.pt-stat-card { padding: 20px; background: #171410; border: 1px solid #51412a; }
.pt-profile-numbers { grid-template-columns: 1fr auto!important; margin: 16px 0 24px; font-size: 14px; }
.pt-profile-numbers dd { color: #f4e9c8; font-weight: 700; }
.pt-profile-attribute { grid-template-columns: 1fr auto!important; padding: 12px; margin: 0 0 10px; background: #211c15; border: 1px solid #403321; font-size: 14px; }
.pt-profile-attribute dd { color: #e8d6a4; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-profile-details .mu-kv { margin: 20px 0; font-size: 13px; }
.pt-equipped-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: start; }
.pt-equipment-help { margin-bottom: 20px!important; }
.pt-equipped-list { flex: 1 1 210px; }
.pt-character-page .pt-equipment-list { grid-template-columns: 80px 1fr!important; gap: 12px!important; font: 13px/1.6 var(--font-body); }
.pt-character-page .pt-equipment-list dt { color: #b2a58e; }
.pt-equipment--large {
  --equipment-scale: 2.2;
  width: calc(190px * var(--equipment-scale));
  height: calc(300px * var(--equipment-scale));
  background-size: calc(190px * var(--equipment-scale)) calc(64px * var(--equipment-scale)),
    calc(190px * var(--equipment-scale)) calc(45px * var(--equipment-scale)),
    calc(21px * var(--equipment-scale)) calc(191px * var(--equipment-scale)),
    calc(21px * var(--equipment-scale)) calc(191px * var(--equipment-scale)), auto;
  background-position: left top, left bottom, left calc(64px * var(--equipment-scale)), right calc(64px * var(--equipment-scale)), left top;
}
.pt .pt-equipment--large h3 { top: calc(12px * var(--equipment-scale)); font-size: 18px; }
.pt-character-page .pt-item-slot summary b { font-size: 14px; right: 5px; bottom: 5px; }
.pt-character-page .pt-itemtip { width: 300px; font-size: 13px; line-height: 1.5; }
.pt-character-page .pt-itemtip .pt-note { font-size: 12px; }
.pt-inventory--large { --inventory-cell: 40px; width: calc(8 * var(--inventory-cell)); height: calc(var(--inventory-rows) * var(--inventory-cell)); background-size: var(--inventory-cell) var(--inventory-cell); margin: 0; }
.pt-bag-scroll { width: fit-content; max-width: 100%; max-height: 720px; overflow: auto; margin: 20px 0; padding: 4px; border: 1px solid #80603a; background: #090807; }
@media (max-width: 760px) {
  .pt-profile-overview { grid-template-columns: minmax(0,1fr); }
  .pt-equipment--large { margin-inline: auto; }
}
@media (max-width: 480px) {
  .pt-equipment--large { --equipment-scale: 1.7; }
  .pt-inventory--large { --inventory-cell: 36px; }
  .pt-profile-tabs a { padding: 10px 12px; font-size: 12px; }
  .pt-profile-heading h2 { font-size: 24px; }
  .pt-character-page .pt-item-slot summary b { font-size: 12px; right: 3px; bottom: 3px; }
}
@media (max-width: 360px) {
  .pt-equipment--large { --equipment-scale: 1.4; }
  .pt-inventory--large { --inventory-cell: 32px; }
}
/* Admin exports include large invisible margins. SVG viewports use the alpha
   bounds so the actual item fills the slot; source image pixels stay intact. */
.pt-character-page .pt-item-art { width: 100%; height: 100%; padding: 4px; overflow: hidden; }
.pt-equipment .pt-item-art { padding: 6px 6px 20px; }
.pt-inventory summary:has(>b) .pt-item-art { padding-bottom: 14px; }
.pt .pt-item-preview-button { display: flex; width: 100%; margin: 12px 0; min-height: 40px; }
.pt .pt-item-preview-button[hidden] { display: none; }
.pt-icon-dialog { width: min(560px, 100% - 24px); max-height: calc(100vh - 32px); padding: 20px; background: #141210; color: #e8d6a4; border: 1px solid #b99859; box-shadow: 0 12px 50px #000; }
.pt-icon-dialog::backdrop { background: #000c; }
.pt-icon-dialog header { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 24px; }
.pt-icon-dialog h3 { font-size: 18px; }
.pt-icon-dialog button { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid #80603a; color: #f4e9c8; background: #2b2118; font-size: 26px; cursor: pointer; }
.pt-icon-dialog__art { display: block; width: 100%; height: min(55vh, 400px); padding: 20px; overflow: hidden; background: #0b0a08; }
/* Markdown guide captures may be wider than the reading column. */
.pt-doc img { display: block; max-width: 100%; height: auto; }
.pt-main .pt-account-characters { min-width: 540px; }
.pt-account-characters :is(th,td) { white-space: nowrap; }
