/* Pelitieto 2026 theme layer. Kept separate while legacy templates are migrated. */
:root {
  --pt-bg: #070b11;
  --pt-bg-soft: #0b111a;
  --pt-card: #101821;
  --pt-card-hover: #15212d;
  --pt-line: rgba(255, 255, 255, .09);
  --pt-line-bright: rgba(255, 255, 255, .17);
  --pt-text: #f4f7fa;
  --pt-muted: #96a5b4;
  --pt-blue: #48b8ef;
  --pt-blue-bright: #6bcaff;
  --pt-mint: #7ee2bd;
  --pt-orange: #ffb35c;
  --pt-radius: 14px;
  --pt-shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --pt-shell: min(1180px, calc(100% - 40px));
}

html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--pt-bg);
  color: var(--pt-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background: radial-gradient(circle at 14% 4%, rgba(34, 153, 216, .11), transparent 28%), var(--pt-bg);
}
body.pt-menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4, h5, h6 { color: var(--pt-text); letter-spacing: -.025em; }
.site-main { position: relative; width: 100%; min-height: 70vh; flex: 1 0 auto; display: flow-root; margin-top: 82px; }
.pt-shell { width: var(--pt-shell); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.pt-skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 10000;
  padding: .7rem 1rem; background: #fff; color: #000; border-radius: 6px;
  transform: translateY(-150%);
}
.pt-skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid rgba(72, 184, 239, .65); outline-offset: 3px; }

/* Header */
.pt-site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  width: 100%;
  height: 82px;
  border-bottom: 1px solid transparent;
  background: rgba(7, 11, 17, .82);
  backdrop-filter: blur(18px) saturate(140%);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pt-site-header.is-scrolled { border-color: var(--pt-line); box-shadow: 0 10px 40px rgba(0, 0, 0, .26); }
.pt-header-inner {
  width: var(--pt-shell); height: 100%; margin-inline: auto;
  display: flex; align-items: center; gap: 2.5rem;
}
.pt-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.pt-brand-image, .pt-brand img { display: block; width: auto; max-width: 190px; max-height: 44px; object-fit: contain; }
.pt-main-nav { margin-right: auto; }
.pt-main-menu, .pt-main-menu ul { list-style: none; margin: 0; padding: 0; }
.pt-main-menu { display: flex; align-items: center; gap: .35rem; }
.pt-main-menu > li { position: relative; display: flex; align-items: center; }
.pt-main-menu a {
  display: inline-flex; padding: .72rem .85rem;
  color: #b9c5d0; border-radius: 7px; text-decoration: none;
  font-size: .94rem; font-weight: 680; letter-spacing: .005em;
  transition: color .18s ease, background .18s ease;
}
.pt-main-menu a:hover, .pt-main-menu .current-menu-item > a { color: #fff; background: rgba(255,255,255,.055); }
.pt-submenu-toggle { padding: .45rem .3rem .45rem 0; border: 0; background: none; color: var(--pt-muted); cursor: pointer; }
.pt-main-menu .sub-menu {
  position: absolute; top: 100%; left: 0; display: none; min-width: 230px;
  padding: .7rem; border: 1px solid var(--pt-line); border-radius: 11px;
  background: #0e151e; box-shadow: var(--pt-shadow);
}
.pt-main-menu .sub-menu::before { position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; content: ""; }
.pt-main-menu li:hover > .sub-menu, .pt-main-menu li:focus-within > .sub-menu, .pt-main-menu li.is-open > .sub-menu { display: block; }
.pt-main-menu .sub-menu a { display: block; width: 100%; }
.pt-main-menu .sub-menu a { padding: .72rem .75rem; font-size: .84rem; }
.pt-mobile-nav-head, .pt-mobile-nav-actions { display: none; }
.pt-header-actions { display: flex; align-items: center; gap: .7rem; }
.pt-header-search {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--pt-line); border-radius: 50%; color: #c7d1db;
  transition: border-color .2s, color .2s, background .2s;
}
.pt-header-search:hover { color: #fff; border-color: var(--pt-line-bright); background: rgba(255,255,255,.05); }
.pt-login-link { padding: .5rem .2rem; color: #ccd5dd; text-decoration: none; font-size: .88rem; font-weight: 650; }
.pt-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 48px; padding: .75rem 1.25rem; border: 1px solid rgba(109, 207, 255, .4); border-radius: 9px;
  color: #04111a !important; background: linear-gradient(135deg, var(--pt-blue-bright), var(--pt-blue));
  box-shadow: 0 10px 28px rgba(43, 164, 224, .18); text-decoration: none !important;
  font-size: .91rem; font-weight: 800; transition: transform .18s, box-shadow .18s, filter .18s;
}
.pt-button:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 34px rgba(43,164,224,.27); }
.pt-button--small { min-height: 38px; padding: .45rem .85rem; border-radius: 7px; font-size: .8rem; }
.pt-account { position: relative; }
.pt-account-toggle { display: flex; align-items: center; gap: .55rem; padding: .25rem; border: 0; background: none; color: #dbe3ea; font-size: .82rem; }
.pt-account-toggle img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.pt-account-menu {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 180px; padding: .5rem;
  border: 1px solid var(--pt-line); border-radius: 10px; background: #0e151e; box-shadow: var(--pt-shadow);
}
.pt-account-menu a { display: block; padding: .6rem .7rem; border-radius: 6px; color: #cbd4dc; text-decoration: none; font-size: .85rem; }
.pt-account-menu a:hover { color: #fff; background: rgba(255,255,255,.06); }
.pt-menu-toggle { display: none; }

/* Home hero */
.pt-home-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--pt-line); }
.pt-home-hero::before {
  position: absolute; inset: 0; z-index: -2; content: "";
  background: linear-gradient(90deg, rgba(7,11,17,.98) 0%, rgba(7,11,17,.9) 46%, rgba(7,11,17,.35) 100%), url("background-general-largeicons.png") center 32% / cover;
  opacity: .84;
}
.pt-home-hero::after {
  position: absolute; inset: auto 0 0; z-index: -1; height: 35%; content: "";
  background: linear-gradient(transparent, var(--pt-bg));
}
.pt-home-hero__glow { position: absolute; right: 8%; top: 5%; z-index: -1; width: 580px; height: 580px; border-radius: 50%; background: rgba(24, 148, 211, .11); filter: blur(90px); }
.pt-home-hero__content { min-height: 690px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(350px, .9fr); align-items: center; gap: 5vw; padding-block: 80px 100px; }
.pt-home-copy { max-width: 690px; }
.pt-eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.1rem; color: #9eb0bf; font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.pt-eyebrow span { width: 26px; height: 2px; background: var(--pt-blue); box-shadow: 0 0 14px var(--pt-blue); }
.pt-home-copy h1 { margin: 0; max-width: 760px; font-size: clamp(3rem, 5.7vw, 5.7rem); font-weight: 850; line-height: .98; letter-spacing: -.065em; }
.pt-home-copy h1 em { color: var(--pt-blue-bright); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.pt-home-lead { max-width: 600px; margin: 1.6rem 0 1.8rem; color: #b5c1cb; font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.7; }
.pt-game-search {
  width: min(620px, 100%); min-height: 62px; display: flex; align-items: center; gap: .8rem;
  padding: .45rem .45rem .45rem 1rem; border: 1px solid var(--pt-line-bright); border-radius: 11px;
  background: rgba(12, 19, 28, .88); box-shadow: 0 18px 60px rgba(0,0,0,.33); backdrop-filter: blur(12px);
}
.pt-game-search svg { flex: 0 0 auto; color: var(--pt-muted); }
.pt-game-search input[type="search"] { flex: 1; min-width: 0; padding: .5rem 0; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #fff; font-size: .95rem; }
.pt-game-search input::placeholder { color: #738493; }
.pt-game-search button { flex: 0 0 auto; min-height: 48px; padding: .65rem 1.3rem; border: 0; border-radius: 8px; background: #eaf7ff; color: #07111a; font-weight: 800; }
.pt-home-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.2rem; }
.pt-home-actions > span { color: #718290; font-size: .76rem; }
.pt-home-showcase { position: relative; height: 470px; perspective: 1000px; }
.pt-showcase-label { position: absolute; top: -28px; left: 28%; z-index: 6; display: flex; align-items: center; gap: .5rem; margin: 0; color: #80919e; font-size: .62rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.pt-showcase-label span { width: 18px; height: 1px; background: var(--pt-blue); }
.pt-showcase-card { position: absolute; display: block; width: 215px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); background: var(--pt-card); box-shadow: 0 30px 70px rgba(0,0,0,.52); text-decoration: none; transition: transform .25s ease; }
.pt-showcase-card:hover { transform: translateY(-9px) rotate(0); z-index: 5; }
.pt-showcase-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.pt-showcase-card span { display: block; padding: .75rem .8rem; color: #eaf0f5; background: rgba(8,13,19,.96); font-size: .78rem; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-showcase-card--1 { top: 10px; left: 28%; z-index: 3; width: 235px; transform: rotate(2deg); }
.pt-showcase-card--2 { top: 96px; left: 0; z-index: 2; transform: rotate(-7deg); }
.pt-showcase-card--3 { top: 115px; right: -10px; z-index: 1; transform: rotate(7deg); }

.pt-home-stats { border-bottom: 1px solid var(--pt-line); background: rgba(10,15,22,.85); }
.pt-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pt-stat-grid a { display: flex; align-items: baseline; justify-content: center; gap: .65rem; padding: 1.5rem; border-right: 1px solid var(--pt-line); text-decoration: none; }
.pt-stat-grid a:first-child { border-left: 1px solid var(--pt-line); }
.pt-stat-grid strong { color: #fff; font-size: 1.4rem; letter-spacing: -.04em; }
.pt-stat-grid span { color: var(--pt-muted); font-size: .73rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* Home sections */
.pt-home-section { padding-block: 90px; }
.pt-home-section--latest { border-block: 1px solid var(--pt-line); background: var(--pt-bg-soft); }
.pt-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.pt-section-heading .pt-eyebrow { margin-bottom: .45rem; }
.pt-section-heading h2, .pt-home-cta h2 { margin: 0; font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 820; letter-spacing: -.045em; }
.pt-section-heading > a { padding-bottom: .35rem; color: #aebbc6; text-decoration: none; font-size: .82rem; font-weight: 750; }
.pt-section-heading > a span { margin-left: .35rem; color: var(--pt-blue); }
.pt-section-heading > a:hover { color: #fff; }
.pt-featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.pt-featured-card { min-width: 0; }
.pt-featured-image { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; border: 1px solid var(--pt-line); border-radius: var(--pt-radius); background: var(--pt-card); }
.pt-featured-image::after { position: absolute; inset: 40% 0 0; content: ""; background: linear-gradient(transparent, rgba(4,7,10,.52)); }
.pt-featured-image img, .pt-latest-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.pt-featured-card:hover img, .pt-latest-card:hover img { transform: scale(1.035); filter: brightness(1.06); }
.pt-rank { position: absolute; top: .75rem; left: .75rem; z-index: 2; display: grid; place-items: center; min-width: 40px; height: 32px; padding-inline: .5rem; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; color: #fff; background: rgba(5,9,14,.78); backdrop-filter: blur(10px); font-size: .74rem; font-weight: 850; }
.pt-featured-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; padding: .9rem .15rem 0; }
.pt-featured-meta h3, .pt-latest-card h3 { margin: 0; font-size: .93rem; font-weight: 750; line-height: 1.35; }
.pt-featured-meta h3 a, .pt-latest-card h3 a { text-decoration: none; }
.pt-featured-meta h3 a:hover, .pt-latest-card h3 a:hover { color: var(--pt-blue-bright); }
.pt-featured-meta p, .pt-latest-card p { margin: .2rem 0 0; color: #778896; font-size: .73rem; }
.pt-featured-meta > strong { flex: 0 0 auto; color: var(--pt-orange); font-size: .8rem; }
.pt-latest-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1.6rem .9rem; }
.pt-latest-image { display: block; aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: .7rem; border: 1px solid var(--pt-line); border-radius: 9px; background: var(--pt-card); }
.pt-latest-card h3 { font-size: .78rem; }
.pt-home-cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-block: 90px; padding: 3.3rem; border: 1px solid rgba(75,188,240,.22); border-radius: 18px; background: linear-gradient(120deg, #0d1822, #0b121b); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.pt-home-cta::after { position: absolute; right: -90px; top: -190px; width: 420px; height: 420px; border-radius: 50%; content: ""; background: rgba(45,174,232,.13); filter: blur(60px); pointer-events: none; }
.pt-home-cta > * { position: relative; z-index: 1; }
.pt-home-cta .pt-eyebrow { margin-bottom: .5rem; }
.pt-home-cta p:last-child { margin: .7rem 0 0; color: var(--pt-muted); }
.pt-home-cta .pt-button { flex: 0 0 auto; }

/* Game archive */
.pt-archive { padding-block: 72px 100px; }
.pt-archive-header { max-width: 760px; margin-bottom: 2.2rem; }
.pt-archive-header .pt-eyebrow { margin-bottom: .55rem; }
.pt-archive-header h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 850; letter-spacing: -.06em; }
.pt-archive-header > p:last-child { max-width: 650px; margin: 1rem 0 0; color: var(--pt-muted); }
.pt-filter-panel {
  display: grid; grid-template-columns: minmax(250px, 1.8fr) repeat(4, minmax(125px, 1fr)) auto;
  gap: .75rem; padding: 1.1rem; border: 1px solid var(--pt-line); border-radius: 14px;
  background: rgba(14, 21, 30, .84); box-shadow: 0 22px 65px rgba(0,0,0,.22); backdrop-filter: blur(14px);
}
.pt-filter-panel label { display: block; margin-bottom: .4rem; color: #8e9eac; font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pt-filter-panel input, .pt-filter-panel select { width: 100%; height: 45px; padding: 0 .75rem !important; border: 1px solid var(--pt-line) !important; border-radius: 7px !important; background-color: #0a1119 !important; font-size: .8rem; }
.pt-filter-search > div { position: relative; }
.pt-filter-search svg { position: absolute; top: 50%; left: .75rem; color: #748592; transform: translateY(-50%); pointer-events: none; }
.pt-filter-search input { padding-left: 2.5rem !important; }
.pt-filter-submit { align-self: end; height: 45px; padding: 0 1.1rem; border: 0; border-radius: 7px; background: var(--pt-blue); color: #06131b; font-size: .76rem; font-weight: 850; }
.pt-filter-secondary { grid-column: 1 / -1; display: flex; gap: 1rem; padding-top: .15rem; }
.pt-filter-secondary a, .pt-filter-secondary button { padding: .2rem 0; border: 0; background: none; color: #8494a1; font-size: .72rem; font-weight: 700; text-decoration: none; }
.pt-filter-secondary a:hover, .pt-filter-secondary button:hover:not(:disabled) { color: var(--pt-blue-bright); }
.pt-filter-secondary button:disabled { opacity: .35; }
.pt-results-bar { display: flex; align-items: center; justify-content: space-between; margin: 2.2rem 0 1rem; }
.pt-results-bar p { margin: 0; color: #758692; font-size: .78rem; }
.pt-results-bar strong { color: #dfe8ef; }
.pt-results-bar > span { padding: .3rem .55rem; border: 1px solid var(--pt-line); border-radius: 99px; color: #8293a0; font-size: .66rem; font-weight: 750; }
.pt-archive-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem 1rem; min-height: 250px; }
.pt-archive-card { min-width: 0; }
.pt-archive-image { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; border: 1px solid var(--pt-line); border-radius: 10px; background: var(--pt-card); }
.pt-archive-image::after { position: absolute; inset: auto 0 0; height: 30%; content: ""; background: linear-gradient(transparent, rgba(3,6,9,.55)); }
.pt-archive-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease, filter .3s ease; }
.pt-archive-card:hover .pt-archive-image { border-color: rgba(72,184,239,.38); box-shadow: 0 16px 38px rgba(0,0,0,.28); }
.pt-archive-card:hover .pt-archive-image img { transform: scale(1.035); filter: brightness(1.06); }
.pt-added-badge { position: absolute; top: .6rem; left: .6rem; z-index: 2; padding: .3rem .5rem; border-radius: 5px; background: rgba(10,115,81,.9); color: #dfffee; font-size: .59rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; backdrop-filter: blur(8px); }
.pt-card-rating { position: absolute; right: .6rem; bottom: .55rem; z-index: 2; padding: .27rem .45rem; border-radius: 5px; background: rgba(4,8,12,.82); color: var(--pt-orange); font-size: .68rem; }
.pt-archive-meta { padding: .7rem .1rem 0; }
.pt-archive-meta h2 { margin: 0; font-size: .82rem; font-weight: 750; line-height: 1.4; }
.pt-archive-meta h2 a { display: -webkit-box; overflow: hidden; color: #e9eef2; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pt-archive-meta h2 a:hover { color: var(--pt-blue-bright); }
.pt-archive-meta p { margin: .2rem 0 0; color: #71818e; font-size: .66rem; }
.pt-empty-state { grid-column: 1/-1; padding: 5rem 1rem; border: 1px dashed var(--pt-line-bright); border-radius: 14px; text-align: center; }
.pt-empty-state > span { color: var(--pt-blue); font-size: 3rem; }
.pt-empty-state h2 { margin: .5rem 0 .25rem; font-size: 1.4rem; }
.pt-empty-state p { color: var(--pt-muted); }
.pt-empty-state button { padding: .65rem 1rem; border: 1px solid var(--pt-line-bright); border-radius: 7px; background: transparent; color: #fff; font-weight: 700; }
.pt-pager { margin-top: 3rem; }
.pt-pager .pagination { justify-content: center; gap: .35rem; margin: 0; }
.pt-pager .page-link { display: grid; min-width: 38px; height: 38px; place-items: center; padding: 0 .65rem; border: 1px solid var(--pt-line) !important; border-radius: 7px !important; background: var(--pt-card) !important; color: #a9b6c0 !important; font-size: .74rem; text-decoration: none; }
.pt-pager .current { border-color: var(--pt-blue) !important; background: var(--pt-blue) !important; color: #06131b !important; font-weight: 850; }

/* Single game */
.pt-alert-stack { position: fixed; top: 82px; left: 50%; z-index: 1055; width: min(400px, calc(100% - 30px)); transform: translateX(-50%); }
.pt-game-hero { position: relative; isolation: isolate; min-height: 480px; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--pt-line); background: #080d13; }
.pt-game-hero::before { position: absolute; inset: 0; z-index: -2; content: ""; background: var(--pt-game-hero-image) center 35% / cover no-repeat; filter: saturate(.82); transform: scale(1.015); }
.pt-game-hero::after { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(90deg, rgba(5,8,12,.93), rgba(5,8,12,.45) 62%, rgba(5,8,12,.55)), linear-gradient(0deg, var(--pt-bg), transparent 72%); }
.pt-game-hero__inner { padding-block: 3.5rem; }
.pt-breadcrumb { display: flex; gap: .6rem; margin-bottom: 4.5rem; color: #9babb7; font-size: .69rem; font-weight: 700; }
.pt-breadcrumb a { color: inherit; text-decoration: none; }
.pt-breadcrumb a:hover { color: #fff; }
.pt-game-hero__meta { max-width: 860px; }
.pt-game-hero__meta .pt-eyebrow { margin-bottom: .45rem; }
.pt-game-hero h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 5.6rem); font-weight: 880; line-height: 1; letter-spacing: -.065em; text-shadow: 0 12px 40px rgba(0,0,0,.38); }
.pt-game-platforms { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.pt-game-platforms a, .pt-game-platforms span { padding: .34rem .6rem; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; background: rgba(7,12,18,.65); color: #c7d3dc; text-decoration: none; font-size: .66rem; font-weight: 750; backdrop-filter: blur(8px); }
.pt-game-platforms a:hover { border-color: rgba(72,184,239,.45); color: #fff; }
.pt-game-page { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; padding-block: 70px 90px; }
.pt-game-sidebar { min-width: 0; }
.pt-game-cover { overflow: hidden; aspect-ratio: 3/4; border: 1px solid var(--pt-line); border-radius: 13px; box-shadow: 0 25px 60px rgba(0,0,0,.36); }
.pt-game-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pt-game-action { margin-top: 1rem; }
.pt-game-action .pelitieto-profiili-nappi { min-height: 48px; margin: 0; border-radius: 8px; background: var(--pt-blue); box-shadow: 0 12px 28px rgba(43,164,224,.18); color: #07131b; font-size: .82rem; }
.pt-game-action .pelitieto-profiili-nappi:hover { background: var(--pt-blue-bright); color: #07131b; }
.pt-game-score { margin: 1.1rem 0; padding: 1rem; border: 1px solid var(--pt-line); border-radius: 9px; background: var(--pt-card); text-align: center; }
.pt-game-score .pelitieto-stars-static { margin: 0 !important; }
.pt-game-facts { margin-top: 1rem; padding: 1.1rem; border: 1px solid var(--pt-line); border-radius: 11px; background: #0b121a; }
.pt-game-facts h2 { margin: 0 0 .8rem; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.pt-game-facts dl { margin: 0; }
.pt-game-facts dl > div { display: grid; grid-template-columns: 82px 1fr; gap: .5rem; padding: .58rem 0; border-top: 1px solid var(--pt-line); }
.pt-game-facts dt { color: #6f818f; font-size: .66rem; font-weight: 700; }
.pt-game-facts dd { margin: 0; color: #bdc9d2; font-size: .7rem; line-height: 1.5; }
.pt-game-facts dd a { color: #dce8f0; text-decoration-color: rgba(72,184,239,.45); text-underline-offset: 2px; }
.pt-pegi { display: flex; align-items: center; gap: .45rem; }
.pt-pegi img { width: 28px; height: 28px; object-fit: contain; }
.pt-game-content { min-width: 0; }
.pt-game-themes { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.6rem; }
.pt-game-themes span { padding: .36rem .65rem; border: 1px solid var(--pt-line); border-radius: 99px; background: rgba(255,255,255,.025); color: #9dabb7; font-size: .66rem; font-weight: 700; }
.pt-game-body { color: #b8c4cd; font-size: 1rem; line-height: 1.82; }
.pt-game-body > h2:first-child { margin-top: 0; }
.pt-game-body h2 { margin: 2.4rem 0 .8rem; color: #f3f6f8; font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 820; }
.pt-game-body h3 { margin-top: 2rem; font-size: 1.3rem; }
.pt-game-body p { margin-bottom: 1.3rem; }
.pt-game-body a { color: var(--pt-blue-bright); text-underline-offset: 3px; }
.pt-game-body iframe { width: 100%; max-width: 100%; border: 0; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.32); }
.pt-game-body .wp-block-embed, .pt-game-body .ratio { margin-block: 2rem; }
.pt-game-reviews { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--pt-line); }
.pt-game-reviews > h2 { margin: 0 0 1.3rem; font-size: 1.6rem; font-weight: 820; }
.pt-review-card { padding: 1.2rem; border: 1px solid var(--pt-line); border-radius: 10px; background: var(--pt-card); }
.pt-review-card + .pt-review-card { margin-top: .75rem; }
.pt-review-head { display: flex; justify-content: space-between; gap: 1rem; }
.pt-review-head a { color: #edf2f5; font-size: .78rem; font-weight: 800; text-decoration: none; }
.pt-review-head span { color: #748491; font-size: .7rem; }
.pt-review-stars { margin: .45rem 0; color: var(--pt-orange); font-size: .72rem; letter-spacing: .04em; }
.pt-review-card p { margin: 0; color: #a8b5bf; white-space: pre-line; font-size: .82rem; }
.pt-review-pages { display: flex; gap: .4rem; margin-top: 1rem; }
.pt-review-pages button { width: 36px; height: 36px; border: 1px solid var(--pt-line); border-radius: 6px; background: var(--pt-card); color: #aab7c0; }
.pt-review-pages button.is-active { border-color: var(--pt-blue); background: var(--pt-blue); color: #06131b; font-weight: 850; }
.pt-related-games { padding-bottom: 100px; }

/* Registration */
.pt-register-page { padding-block: 75px 100px; }
.pt-register-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(470px, 1fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; max-width: 1050px; margin-inline: auto; }
.pt-register-intro h1 { margin: 0; font-size: clamp(3rem, 6vw, 5.2rem); font-weight: 860; line-height: .98; letter-spacing: -.065em; }
.pt-register-intro > p:not(.pt-eyebrow) { max-width: 480px; margin: 1.3rem 0 1.5rem; color: #9dabb7; font-size: .92rem; line-height: 1.75; }
.pt-register-intro ul { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; color: #b6c2cb; font-size: .77rem; }
.pt-register-intro li span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: .55rem; border: 1px solid rgba(91,213,164,.3); border-radius: 50%; color: var(--pt-mint); font-size: .65rem; }
.pt-register-card { padding: 1.7rem; border: 1px solid var(--pt-line); border-radius: 15px; background: rgba(14,22,31,.92); box-shadow: 0 28px 75px rgba(0,0,0,.28); }
.pt-register-card__head { margin-bottom: 1.3rem; }
.pt-register-card h2 { margin: 0; font-size: 1.55rem; font-weight: 840; }
.pt-register-card__head p, .pt-register-card > p { margin: .25rem 0 0; color: #788995; font-size: .7rem; }
.pt-register-form { display: grid; gap: 1rem; }
.pt-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.pt-form-field label { display: block; margin-bottom: .38rem; color: #a7b5bf; font-size: .68rem; font-weight: 780; }
.pt-form-field input { width: 100%; height: 47px; padding: 0 .8rem; border: 1px solid var(--pt-line-bright); border-radius: 8px; background: #091119; color: #f3f6f8; font-size: .82rem; }
.pt-form-field input:focus { border-color: var(--pt-blue); box-shadow: 0 0 0 3px rgba(72,184,239,.1); outline: 0; }
.pt-form-field small { display: block; margin-top: .3rem; color: #637481; font-size: .59rem; }
.pt-register-submit { width: 100%; border: 0; cursor: pointer; }
.pt-honeypot { position: fixed !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.pt-form-errors { margin-bottom: 1rem; padding: .85rem 1rem; border: 1px solid rgba(255,102,117,.3); border-radius: 8px; background: rgba(173,37,58,.1); color: #ffc6cc; font-size: .7rem; }
.pt-form-errors strong { color: #ffe4e7; }
.pt-form-errors ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.pt-register-security { display: flex; align-items: flex-start; gap: .45rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--pt-line); color: #647582; font-size: .59rem; line-height: 1.5; }
.pt-register-security svg { flex: 0 0 auto; color: var(--pt-mint); }
.pt-register-login { margin-top: 1rem !important; text-align: center; }
.pt-register-login a { color: var(--pt-blue-bright); font-weight: 750; text-decoration: none; }

/* Legacy template integration */
.container { max-width: 1180px; }
.homepage-bg-wrapper { opacity: .48; }
.bg-dark { background-color: var(--pt-card) !important; }
.card, .meta-box, .engine-card, .console-card, .series-card, .game-card { border-color: var(--pt-line) !important; background-color: var(--pt-card) !important; border-radius: 11px !important; }
.form-control, .form-select, input[type="search"], input[type="text"], textarea, select { border-color: var(--pt-line-bright) !important; background-color: #0c131c !important; color: #fff !important; }
.btn-primary, .pelitieto-cta-btn { background: var(--pt-blue) !important; border-color: var(--pt-blue) !important; box-shadow: none; }
.game-card:hover, .engine-card:hover, .console-card:hover, .series-card:hover { border-color: rgba(72,184,239,.45) !important; box-shadow: 0 18px 45px rgba(0,0,0,.32) !important; }

/* Footer */
.pt-site-footer { position: relative !important; inset: auto !important; z-index: 1; width: 100%; flex: 0 0 auto; clear: both; margin-top: 0; padding: 70px 0 0; border-top: 1px solid var(--pt-line); background: #06090e; color: var(--pt-muted); }
.pt-footer-grid { width: var(--pt-shell); margin-inline: auto; display: grid; grid-template-columns: 2.2fr repeat(3, 1fr); gap: 4rem; }
.pt-brand--footer img { max-width: 150px; }
.pt-footer-intro p { max-width: 390px; margin: 1.2rem 0 0; color: #7e8c99; font-size: .84rem; line-height: 1.75; }
.pt-footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.pt-footer-nav h2 { margin: 0 0 .45rem; color: #e8edf2; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pt-footer-nav a { color: #83919d; text-decoration: none; font-size: .8rem; }
.pt-footer-nav a:hover { color: var(--pt-blue-bright); }
.pt-footer-bottom { width: var(--pt-shell); margin: 60px auto 0; padding: 1.2rem 0; border-top: 1px solid var(--pt-line); display: flex; justify-content: space-between; gap: 1rem; }
.pt-footer-bottom p { margin: 0; color: #53616d; font-size: .7rem; }

@media (max-width: 1100px) {
  .pt-home-hero__content { grid-template-columns: 1fr 360px; }
  .pt-showcase-card { width: 175px; }
  .pt-showcase-card--1 { width: 195px; }
  .pt-latest-grid { grid-template-columns: repeat(4, 1fr); row-gap: 1.8rem; }
  .pt-latest-card:nth-child(n+17) { display: none; }
  .pt-account-name { display: none; }
  .pt-filter-panel { grid-template-columns: repeat(4, 1fr); }
  .pt-filter-search { grid-column: span 2; }
  .pt-filter-submit { grid-column: span 2; }
  .pt-archive-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-main { margin-top: 72px; }
  .pt-site-header { height: 72px; background: #090f16; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .pt-header-inner { gap: .8rem; }
  .pt-menu-toggle { order: 3; display: grid; place-content: center; gap: 4px; width: 38px; height: 38px; padding: 0; border: 1px solid var(--pt-line); border-radius: 8px; background: transparent; }
  .pt-menu-toggle > span:not(.screen-reader-text) { display: block; width: 17px; height: 2px; background: #fff; border-radius: 2px; }
  .pt-menu-toggle > span:not(.screen-reader-text) { transition: transform .2s ease, opacity .2s ease; }
  .pt-menu-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
  .pt-menu-toggle[aria-expanded="true"] > span:nth-of-type(3) { opacity: 0; }
  .pt-menu-toggle[aria-expanded="true"] > span:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }
  .pt-main-nav { position: fixed; z-index: 9999; top: 72px; left: 0; right: 0; width: 100vw; height: calc(100dvh - 72px); max-height: none; display: block; overflow-y: auto; overscroll-behavior: contain; padding: 2rem max(24px, calc((100vw - 680px) / 2)) 2.5rem; border-top: 1px solid var(--pt-line); background: radial-gradient(circle at 90% 0, rgba(47,174,232,.13), transparent 34%), #080d14; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .22s ease, transform .22s ease, visibility .22s; }
  .pt-main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  body.pt-menu-open .site-main, body.pt-menu-open .pt-site-footer { visibility: hidden; }
  .pt-mobile-nav-head { display: block; margin-bottom: 1.3rem; }
  .pt-mobile-nav-head > span { display: block; color: #fff; font-size: 1.65rem; font-weight: 850; letter-spacing: -.04em; }
  .pt-mobile-nav-head p { margin: .25rem 0 0; color: #728492; font-size: .76rem; }
  .pt-main-menu { display: block; counter-reset: pt-menu; }
  .pt-main-menu > li { display: flex; flex-wrap: wrap; min-height: 58px; border-bottom: 1px solid var(--pt-line); counter-increment: pt-menu; }
  .pt-main-menu > li::before { align-self: center; width: 29px; content: "0" counter(pt-menu); color: #526572; font-size: .6rem; font-weight: 800; }
  .pt-main-menu > li > a { flex: 1; padding: .9rem .2rem; color: #e8eef3; font-size: 1.15rem; font-weight: 780; letter-spacing: -.02em; }
  .pt-main-menu > li.is-open, .pt-main-menu > li.current-menu-parent, .pt-main-menu > li.current-menu-ancestor { margin-block: .35rem; padding-inline: .65rem; border: 1px solid var(--pt-line); border-radius: 10px; background: rgba(255,255,255,.025); }
  .pt-main-menu > li.is-open > a, .pt-main-menu > li.current-menu-item > a, .pt-main-menu > li.current-menu-parent > a, .pt-main-menu > li.current-menu-ancestor > a { background: transparent; }
  .pt-submenu-toggle { width: 45px; padding: 0; font-size: 1.1rem; }
  .pt-submenu-toggle[aria-expanded="true"] span { display: inline-block; transform: rotate(180deg); }
  .pt-main-menu .sub-menu { position: static; flex: 0 0 auto; width: calc(100% - 29px); max-width: calc(100% - 29px); min-width: 0; margin: 0 0 .8rem 29px; padding: .15rem 0 .15rem .8rem; border: 0; border-left: 2px solid rgba(72,184,239,.42); border-radius: 0; background: transparent; box-shadow: none; }
  .pt-main-menu .sub-menu::before { display: none; }
  .pt-main-menu .sub-menu a { padding: .62rem .7rem; border-radius: 6px; color: #9eafbb; font-size: .84rem; }
  .pt-main-menu .sub-menu a:hover, .pt-main-menu .sub-menu .current-menu-item > a { background: rgba(72,184,239,.08); color: #eaf6fc; }
  .pt-main-menu li:hover > .sub-menu { display: none; }
  .pt-main-menu li.is-open > .sub-menu { display: block; }
  .pt-mobile-nav-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: .7rem; margin-top: 1.8rem; }
  .pt-mobile-nav-actions > a { min-height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--pt-line-bright); border-radius: 8px; color: #d8e1e8; text-decoration: none; font-size: .78rem; font-weight: 800; }
  .pt-mobile-nav-actions > .pt-button { color: #06131b; }
  .pt-mobile-nav-actions > :only-child { grid-column: 1 / -1; }
  .pt-header-actions { margin-left: auto; }
  .pt-login-link, .pt-header-actions > .pt-button { display: none; }
  .pt-home-hero__content { min-height: auto; grid-template-columns: 1fr; padding-block: 80px; }
  .pt-home-copy { max-width: 700px; }
  .pt-home-showcase { display: none; }
  .pt-latest-card:nth-child(n+13) { display: none; }
  .pt-featured-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .pt-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pt-stat-grid a:nth-child(3) { border-left: 1px solid var(--pt-line); }
  .pt-stat-grid a:nth-child(-n+2) { border-bottom: 1px solid var(--pt-line); }
  .pt-footer-grid { grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; }
  .pt-archive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pt-game-page { grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; }
  .pt-register-layout { grid-template-columns: 1fr; max-width: 620px; gap: 2.5rem; }
  .pt-register-intro { text-align: center; }
  .pt-register-intro .pt-eyebrow { justify-content: center; }
  .pt-register-intro > p:not(.pt-eyebrow) { margin-inline: auto; }
  .pt-register-intro ul { display: none; }
}

@media (max-width: 782px) {
  body.admin-bar .pt-site-header { top: 46px; }
  body.admin-bar .pt-main-nav { top: 118px; height: calc(100dvh - 118px); }
}

@media (min-width: 783px) and (max-width: 900px) {
  body.admin-bar .pt-site-header { top: 32px; }
  body.admin-bar .pt-main-nav { top: 104px; height: calc(100dvh - 104px); }
}

@media (min-width: 901px) {
  body.admin-bar .pt-site-header { top: 32px; }
}

@media (max-width: 640px) {
  :root { --pt-shell: min(100% - 28px, 1180px); }
  .pt-brand-image, .pt-brand img { max-width: 136px; }
  .pt-header-search { display: none; }
  .pt-home-hero__content { padding-block: 64px 70px; }
  .pt-home-copy h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .pt-home-lead { margin-top: 1.25rem; }
  .pt-game-search { display: grid; grid-template-columns: auto 1fr; padding: .7rem; }
  .pt-game-search button { grid-column: 1 / -1; width: 100%; }
  .pt-home-actions { align-items: flex-start; flex-direction: column; }
  .pt-stat-grid a { align-items: center; flex-direction: column; gap: .1rem; padding: 1.15rem .5rem; }
  .pt-home-section { padding-block: 64px; }
  .pt-section-heading { align-items: flex-start; flex-direction: column; }
  .pt-featured-grid { gap: 1rem; row-gap: 1.7rem; }
  .pt-featured-meta { display: block; }
  .pt-featured-meta > strong { display: block; margin-top: .3rem; }
  .pt-latest-grid { grid-template-columns: repeat(2, 1fr); }
  .pt-latest-card:nth-child(n+7) { display: none; }
  .pt-home-cta { align-items: flex-start; flex-direction: column; margin-block: 64px; padding: 2rem; }
  .pt-home-cta .pt-button { width: 100%; }
  .pt-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1.2rem; }
  .pt-footer-intro { grid-column: 1 / -1; }
  .pt-footer-bottom { align-items: flex-start; flex-direction: column; margin-top: 42px; }
  .pt-archive { padding-block: 52px 70px; }
  .pt-filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-filter-search, .pt-filter-submit { grid-column: 1 / -1; }
  .pt-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem .8rem; }
  .pt-game-hero { min-height: 390px; }
  .pt-game-hero__inner { padding-block: 2.5rem; }
  .pt-breadcrumb { margin-bottom: 3rem; }
  .pt-game-page { display: block; padding-block: 34px 64px; }
  .pt-game-sidebar { display: grid; grid-template-columns: 115px 1fr; gap: .8rem 1rem; margin-bottom: 2.8rem; }
  .pt-game-cover { grid-row: span 2; }
  .pt-game-action { margin: 0; align-self: end; }
  .pt-game-score { margin: 0; align-self: start; padding: .65rem; }
  .pt-game-facts { grid-column: 1 / -1; }
  .pt-related-games { padding-bottom: 70px; }
  .pt-register-page { padding-block: 48px 70px; }
  .pt-register-intro h1 { font-size: 2.8rem; }
  .pt-register-card { padding: 1.15rem; }
  .pt-form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
