/* PokeWorld on top of Milk v2 (his asks, 2026-10-22): the game's font and colours, a bright header
   with the PokeWorld logo, and a post's author column like IPB's: a big round picture with its badge,
   the name in its group's colour, the rank's ribbon, the post count. Loaded last (overall_header.html). */
:root {
  --pw-ink: #1d1838; --pw-muted: #5f5a82; --pw-mist: #f4f1ff; --pw-mist2: #e9e4ff;
  --pw-violet: #6c3fe0; --pw-violet2: #7c4dea; --pw-sun: #ffd23f; --pw-sky: #2f6fe8; --pw-rose: #e8467a; --pw-green: #1a9a55;
}

/* ---------- the font: Rubik everywhere (Hebrew and Latin) */
body, input, select, textarea, button, .button, h1, h2, h3, h4, .postbody, .content { font-family: "Rubik", Arial, Helvetica, sans-serif; }
body { color: var(--pw-ink); }

/* ---------- the header: the PokeWorld logo instead of Milk's own name (the colours are Milk's: its
   control panel, Flight Deck, sets them) */
.headerbar .site-description h1, .headerbar .site-description p { display: none; }
.headerbar .custom_logo { display: block; margin: 0 auto; height: 132px; width: auto; filter: drop-shadow(0 8px 14px rgba(29, 24, 56, .22)); }
@media (max-width: 700px) { .headerbar .custom_logo { height: 92px; } }

/* ---------- the boards' round icons (images/forums/pw-*.svg), at the start of each board's row */
.forum-image { padding-top: 0; }
.rtl .forum-image { margin-left: 14px; }
.forum-image img { display: block; width: 54px; height: 54px; filter: drop-shadow(0 5px 8px rgba(29, 24, 56, .22)); transition: transform .15s; }
li.row:hover .forum-image img { transform: scale(1.06) rotate(-4deg); }
@media (prefers-reduced-motion: reduce) { li.row:hover .forum-image img { transform: none; } }
@media (max-width: 700px) { .forum-image img { width: 44px; height: 44px; } .rtl .forum-image { margin-left: 10px; } }

/* ---------- PokeWorld sign-in (ext/pokeworld/sso): the sign-in page and the index's box */
.pw-sso-panel { display: grid; justify-items: center; gap: 12px; text-align: center; }
.pw-sso-panel .pw-sso-logo { height: 96px; width: auto; filter: drop-shadow(0 6px 12px rgba(29, 24, 56, .2)); }
.pw-sso-panel p { max-width: 34em; margin: 0; color: var(--pw-muted); font-size: 15px; line-height: 1.5; }
.pw-sso-panel .pw-sso-btn { padding: 12px 34px; font-size: 17px; font-weight: 800; border-radius: 999px; }
.pw-sso-panel .pw-sso-new { font-size: 13.5px; }
.pw-sso-quick p { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 6px 0 0; }
.pw-sso-quick .button2 { border-radius: 999px; padding: 8px 20px; font-weight: 700; }

/* ---------- what the editor writes, in a post: headings ([h2], [h3]: server/bbcodes.php) */
.postbody .content h2.pw-h2, .signature h2.pw-h2 { margin: .55em 0 .25em; font: 800 1.45em/1.25 "Rubik", sans-serif; color: inherit; text-transform: none; }
.postbody .content h3.pw-h3, .signature h3.pw-h3 { margin: .45em 0 .2em; font: 800 1.18em/1.3 "Rubik", sans-serif; color: inherit; text-transform: none; }
.postbody .content > h2.pw-h2:first-child, .postbody .content > h3.pw-h3:first-child { margin-top: 0; }

/* ---------- a post's author ---------------------------------------------------------------------- */
/* the column on the reading side's start (the right, in Hebrew), its own white panel */
.rtl .has-profile .postprofile { float: right; border-width: 0 0 0 1px; }
.rtl .has-profile .postbody { float: left; }
.postprofile { padding: 6px 4px 10px; }
.postprofile .pw-author { --gc: var(--pw-violet); display: grid; justify-items: center; gap: 10px; margin: 0 !important; text-align: center; }
.postprofile .pw-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 17px/1.25 "Rubik", sans-serif; }
.postprofile .pw-name a.username, .postprofile .pw-name span.username { color: var(--pw-ink); }
.postprofile .pw-name a.username-coloured, .postprofile .pw-name span.username-coloured { font-weight: 800; }

/* the game's level and guild tag, under the name */
.postprofile .pw-meta { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: -4px; }
.pw-lvl { display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px; border-radius: 999px; background: #fff3cf; color: #a86b00; font: 800 12px/1.3 "Rubik", sans-serif; }
.pw-guild { padding: 2px 7px; border-radius: 6px; background: var(--g, #b7791f); color: #fff; font: 900 11px/1.3 "Rubik", sans-serif; letter-spacing: .4px; direction: ltr; }
/* the picture: round, a white ring and a thin one in the group's colour */
.postprofile .pw-avatar { position: relative; width: 104px; height: 104px; }
.postprofile .pw-avatar .avatar, .postprofile .pw-letter { display: block; width: 104px; height: 104px; margin: 0 !important; float: none !important; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px color-mix(in srgb, var(--gc) 55%, #fff), 0 10px 22px -8px rgba(29, 24, 56, .45); }
.postprofile .pw-avatar .avatar img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; border-radius: 50%; }
/* no picture: the name's first letter on a colour of its own */
.postprofile .pw-letter { display: grid; place-items: center; text-decoration: none; color: #fff; font: 800 48px/1 "Rubik", sans-serif;
  background: linear-gradient(145deg, hsl(var(--h) 75% 66%), hsl(var(--h) 62% 50%)); text-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.postprofile .pw-letter:hover { color: #fff; text-decoration: none; }
.postprofile .avatar-container:after, .postprofile .pw-avatar:after { display: none; }

/* online: a green dot, top corner */
.pw-online { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px #fff; }

/* the badge: a hexagon in the rank's colour, its sign in white, on the lower corner (the game's hexagon) */
.pw-badge { position: absolute; left: -4px; bottom: -2px; width: 34px; height: 38px; background: #fff;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); filter: drop-shadow(0 3px 4px rgba(29, 24, 56, .3)); }
.pw-badge::before { content: ''; position: absolute; inset: 3px; background: var(--bc, var(--pw-violet)); clip-path: inherit; }
.pw-badge::after { content: ''; position: absolute; inset: 10px 8px; background: #fff; -webkit-mask: var(--bi) center / contain no-repeat; mask: var(--bi) center / contain no-repeat; }
.pw-badge--pw-owner { --bc: linear-gradient(160deg, #ffd84a, #f29a0c); --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.56 3.27a.5.5 0 0 1 .88 0l2.95 5.6a1 1 0 0 0 1.52.3l4.27-3.67a.5.5 0 0 1 .8.52l-2.83 10.25a1 1 0 0 1-.96.73H5.81a1 1 0 0 1-.96-.73L2.02 6.02a.5.5 0 0 1 .8-.52l4.27 3.67a1 1 0 0 0 1.52-.3zM5 19.5h14v2H5z'/%3E%3C/svg%3E"); }
.pw-badge--pw-admin { --bc: linear-gradient(160deg, #ff6b5e, #d92a24); --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3C/svg%3E"); }
.pw-badge--pw-mod { --bc: linear-gradient(160deg, #3fd07e, #158a4b); --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14.5 12.5-8 8a2.12 2.12 0 1 1-3-3l8-8M16 16l6-6M8 8l6-6M9 7l8 8M21 11l-8-8'/%3E%3C/svg%3E"); }
.pw-badge--pw-staff { --bc: linear-gradient(160deg, #62a8ff, #2a62d6); --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94z'/%3E%3C/svg%3E"); }
.pw-badge--pw-media { --bc: linear-gradient(160deg, #ff7aa8, #d63a6c); --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M9.5 4h5L17 7h3a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h3zM12 16.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z'/%3E%3C/svg%3E"); }
.pw-badge--pw-pro { --bc: linear-gradient(160deg, #b38cff, #6a3fdc); --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.53 2.3a.53.53 0 0 1 .94 0l2.31 4.68a2.12 2.12 0 0 0 1.6 1.16l5.16.76a.53.53 0 0 1 .3.9l-3.74 3.64a2.12 2.12 0 0 0-.61 1.88l.88 5.14a.53.53 0 0 1-.77.56l-4.62-2.43a2.12 2.12 0 0 0-1.97 0L6.4 21.01a.53.53 0 0 1-.77-.56l.88-5.14a2.12 2.12 0 0 0-.61-1.88L2.16 9.8a.53.53 0 0 1 .3-.9l5.16-.76a2.12 2.12 0 0 0 1.6-1.16z'/%3E%3C/svg%3E"); }
.pw-badge--pw-vip { --bc: linear-gradient(160deg, #4fe0d2, #17958c); --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12l4 6-10 13L2 9z'/%3E%3C/svg%3E"); }

/* the rank's ribbon: the picture (images/ranks/pw-*.svg) with the rank written over it */
.postprofile dd.pw-rank { margin: 12px 0 0 !important; overflow: visible; text-align: center; }
.pw-ribbon { display: inline-grid; place-items: center; width: 180px; height: 46px; max-width: 100%; background: center / 100% 100% no-repeat; vertical-align: middle; }
.pw-ribbon > span { max-width: 118px; margin-top: -4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #fff; font: 800 15px/1 "Rubik", sans-serif; letter-spacing: .1px; text-shadow: 0 1px 0 rgba(0, 0, 0, .28), 0 0 6px rgba(0, 0, 0, .16); }
.pw-ribbon--pw-owner > span { color: #4a2c00; text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
.pw-ribbon--pw-r1 > span { color: #2e2766; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.postprofile dd.pw-rank--plain { color: var(--pw-muted); font-weight: 700; }

/* the post count: a speech bubble and the number */
.postprofile dd.pw-posts { margin: 10px 0 0 !important; color: var(--pw-muted); font: 700 14px/1 "Rubik", sans-serif; }
.postprofile dd.pw-posts a { color: inherit; text-decoration: none; }
.postprofile dd.pw-posts a:hover { color: var(--pw-violet); }
.postprofile dd.pw-posts .icon { color: #8b82c4; font-size: 14px; }
.postprofile dd.profile-joined, .postprofile dd.profile-warnings { margin-top: 6px; font-size: 12.5px; color: var(--pw-muted); }

/* a phone: the author on one line over the post, a smaller picture */
@media (max-width: 700px) {
  .rtl .has-profile .postprofile, .rtl .has-profile .postbody { float: none; }
  .post .postprofile { width: auto !important; display: grid !important; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 4px 0 10px; text-align: start; }
  .postprofile .pw-author { grid-row: 1 / span 3; display: contents; }
  .postprofile .pw-avatar { grid-column: 1; grid-row: 1 / span 3; width: 64px; height: 64px; }
  .postprofile .pw-avatar .avatar, .postprofile .pw-letter { width: 64px; height: 64px; font-size: 30px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px color-mix(in srgb, var(--gc) 55%, #fff), 0 6px 14px -6px rgba(29, 24, 56, .45); }
  .pw-badge { width: 24px; height: 27px; left: -4px; bottom: -3px; }
  .pw-badge::after { inset: 7px 6px; }
  .pw-online { width: 12px; height: 12px; top: 2px; right: 2px; }
  .postprofile .pw-name { grid-column: 2; grid-row: 1; justify-self: start; font-size: 16px; }
  .postprofile .pw-meta { grid-column: 3; grid-row: 1; margin: 0; justify-content: start; }
  .postprofile dd.pw-rank { grid-column: 2; grid-row: 2; display: block !important; margin: 2px 0 0 !important; justify-self: start; }
  .pw-ribbon { width: 140px; height: 36px; }
  .pw-ribbon > span { max-width: 92px; font-size: 13px; margin-top: -3px; }
  .postprofile dd.pw-posts { grid-column: 2; grid-row: 3; display: block !important; margin: 4px 0 0 !important; justify-self: start; font-size: 13px; }
}
