/* Classic handheld dialogue frames and Pokemon menu details. */
:root {
  --ink: #303f4c;
  --muted: #596b78;
  --frame: #425b6d;
  --paper: #fffef5;
  --gold: #b18b36;
  --link: #365d78;
}
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  color: var(--ink);
  background-color: #e3eae2;
  background-image: linear-gradient(#879ba00b 1px, transparent 1px), linear-gradient(90deg, #879ba00b 1px, transparent 1px);
  background-size: 8px 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.75;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #775712; text-decoration: underline; }
a:focus-visible { outline: 3px solid #947022; outline-offset: 4px; }
.allstuffp { max-width: 1120px; padding: 64px 32px 40px !important; }
.allstuff { padding-top: 0 !important; align-items: flex-start; }
.sidebar { padding-top: 0 !important; }
.fixed-posi {
  position: sticky;
  top: 28px;
  width: auto;
  text-align: center;
  background: #f7f8ef;
  border: 3px solid var(--frame);
  border-radius: 7px;
  box-shadow: inset 0 0 0 3px #fffef5, inset 0 0 0 5px #a5b5bc, 0 4px 0 #a3b4b7;
  padding: 12px;
}
@media (min-width: 768px) { .sidebar { position: sticky; top: 28px; } }
.panel-label, .screen-bar, .ri-kicker, .touch-menu, .header {
  font-family: 'Courier New', monospace;
}
.panel-label { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 2px; color: var(--muted); border-bottom: 1px solid #c6cfd0; padding: 0 2px 8px; }
.name { font-size: 24px; color: var(--ink); margin: 20px 0 6px; letter-spacing: -.7px; }
.profilepic { display: block; width: 128px; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; object-position: center top; border-radius: 0; padding: 0 !important; border: 4px solid #fdfcf4; outline: 1px solid #96a6ad; margin: 16px auto; }
.profile-role { font-size: 12px; line-height: 1.6; margin-bottom: 10px; color: var(--muted); }
.profile-email { font-size: 11px; overflow-wrap: anywhere; }
.touch-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0; text-align: left; }
.touch-menu a { position: relative; display: flex; align-items: center; gap: 6px; padding: 10px 6px 10px 14px; font-size: 11px; font-weight: bold; color: var(--ink); background: linear-gradient(#ffffff, #e6ecec); border: 2px solid #718795; border-radius: 5px; box-shadow: inset 0 0 0 2px #ffffffa8, 0 2px 0 #b5c2c7; text-decoration: none; }
.touch-menu a span { font-size: 18px; line-height: 1; color: #617d8d; }
.touch-menu a:hover, .touch-menu a[aria-current] { background: linear-gradient(#fff8de, #eddfaf); border-color: #967535; color: #543e15; }
.touch-menu a[aria-current]::after, .touch-menu a:hover::after { content: ''; position: absolute; left: 4px; top: calc(50% - 4px); border-left: 5px solid #473e2c; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.links-label { margin-bottom: 10px; font-size: 10px; }
.external-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; text-align: left; padding: 0 4px; }
.menulink { font-size: 12px; }
.companion { border-top: 1px solid #c6cfd0; padding-top: 12px; margin-top: 16px; display: flex; align-items: center; gap: 8px; text-align: left; }
.companion img { width: 80px; height: 80px; flex: 0 0 80px; object-fit: contain; image-rendering: pixelated; }
.companion span { font-size: 11px; color: var(--muted); line-height: 1.5; }
.about { padding: 0 15px 0 28px !important; min-width: 0; }
.screen-bar { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; letter-spacing: 1.5px; color: var(--muted); padding: 0 2px 12px; }
.screen-bar span:last-child { color: #937329; white-space: nowrap; }
.intro-panel { position: relative; padding: 26px 28px 32px; background: var(--paper); border: 4px solid var(--frame); border-radius: 9px; box-shadow: inset 0 0 0 3px #b3c5ce, inset 0 0 0 5px #fffef5, 0 4px 0 #a3b4b7; }
.intro-panel p { margin: 0; }
.intro-panel::after { content: ''; position: absolute; right: 17px; bottom: 12px; border-top: 7px solid #425b6d; border-left: 5px solid transparent; border-right: 5px solid transparent; }
.party-markers { display: flex; align-items: center; gap: 5px; }
.party-markers i { display: block; width: 12px; height: 12px; border: 2px solid #53636c; border-radius: 50%; background: linear-gradient(to bottom, #b76b61 0 42%, #53636c 42% 60%, #fffef5 60%); position: relative; }
.party-markers i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 4px; height: 4px; background: #fffef5; border: 1px solid #53636c; border-radius: 50%; }
.party-markers i:nth-child(n+4) { opacity: .35; }
.header { font-size: 19px; color: var(--ink); font-weight: bold; border: 0; padding: 0 0 10px !important; margin: 32px 0 16px; border-bottom: 2px solid #afbec5; letter-spacing: -.5px; }
.header::before { content: ''; display: inline-block; width: 16px; height: 16px; margin-right: 10px; background: url('pokeball.svg') center / contain no-repeat; vertical-align: -1px; }
.ri-wrap { margin-top: 32px !important; }
.ri-title-row { display: block; }
.ri-title-row .header { margin-top: 0; }
.ri-card { height: 100%; border: 1px solid #98aab4; border-top: 4px solid #91a7b4; background: #f7f8f2; border-radius: 2px; padding: 18px; box-shadow: inset 0 0 0 3px #fffef7; transition: none; }
.ri-card:hover { transform: none; box-shadow: inset 0 0 0 3px #fffef7; }
.ri-future { border-top-color: #baa66e; }
.ri-kicker { font-size: 10px; line-height: 1.6; letter-spacing: .7px; color: #647581; margin-bottom: 12px; }
.ri-heading { font-size: 16px; color: var(--ink); }
.ri-body { color: #43515b; font-size: 14px; line-height: 1.75; }
.personal-note { font-size: 14px; padding: 4px 2px; }
.news-container { max-height: none; overflow: visible; background: #f6f7f1; border: 1px solid #b3c1c6; padding: 10px 18px; }
.news-item { font-size: 13px; border-bottom: 1px solid #dce2df; padding: 10px 0; }
.news-item:last-child { border-bottom: 0; }
.news-date { color: #5b6b76; font-family: 'Courier New', monospace; font-size: 11px; white-space: nowrap; }
.paper { font-size: 13px; line-height: 1.8; border-left: 2px solid #a5b6be; padding-left: 16px !important; }
.papertitle { font-size: 15px; color: #2e4d63; font-weight: 600; }
.thisauthor { color: var(--ink); text-decoration: none; }
.conf { color: #64717a; font-size: 12px; }
.tag { display: inline-block; font-family: 'Courier New', monospace; font-size: 11px; padding: 0 8px; border: 1px solid #a6b7bc; background: #f8faf4; border-radius: 2px; }
.footer { margin-top: 32px; border-top: 1px solid #b8c5c9; padding: 18px 0; text-align: right; }
.last-updated { font-family: 'Courier New', monospace; color: var(--muted); font-size: 10px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 10; background: var(--paper); padding: 10px 18px; }
.skip-link:focus { top: 12px; }
@media (min-width: 768px) and (max-width: 991px) { .allstuffp { padding-left: 18px !important; padding-right: 18px !important; } .sidebar { flex: 0 0 29%; max-width: 29%; } .about { flex: 0 0 71%; max-width: 71%; padding-left: 20px !important; } }
@media (max-width: 767px) {
  .allstuffp { padding: 24px 20px !important; }
  .sidebar { margin-bottom: 28px; }
  .fixed-posi { padding: 14px 18px; }
  .profilepic { width: 100px; }
  .name { margin-top: 16px; }
  .touch-menu { grid-template-columns: repeat(4, 1fr); margin: 18px 0; }
  .touch-menu a { justify-content: center; padding: 10px 4px; }
  .external-links { grid-template-columns: repeat(4, 1fr); text-align: center; }
  .companion { justify-content: center; }
  .about { padding: 0 15px !important; }
  .intro-panel { padding: 22px 22px 30px; }
  .touch-menu a { padding-left: 12px; }
  .screen-bar { font-size: 9px; letter-spacing: .5px; }
}
@media (max-width: 380px) { .touch-menu { grid-template-columns: 1fr 1fr; } .external-links { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { body { background: white; } .sidebar, .screen-bar, .skip-link { display: none; } .about { flex: 0 0 100%; max-width: 100%; } .intro-panel { box-shadow: none; } }
