/* =========================================================
   PS3 WORLD LITE - shared stylesheet
   Built for the PS3 web browser: table layouts, no flexbox/grid.
   Every :hover has a matching :focus so links highlight when
   moving between them with the D-pad. Text is sized for a TV.

   Page-specific tweaks hang off a class on <body>:
     page-home      index.html
     page-ports     ps3-ports.html
     page-exclusive ps3-exclusive-themes.html
   ========================================================= */

* {
  box-sizing: border-box;
}

body {
  background: #05070d;
  color: #eef1f7;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  padding: 0;
}

a {
  color: #2b8fff;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #4ad9ff;
}

img {
  border: 0;
  display: block;
  max-width: 100%;
}

/* ---- Notice bars ---- */

.ps3-banner {
  background: #1a2a3a;
  color: #c8d8e8;
  padding: 8px 14px;
  text-align: center;
  border-bottom: 2px solid #4a9eff;
  font-size: 14px;
  line-height: 1.4;
}

.ps3-banner .ps3-badge {
  display: inline-block;
  background: #4a9eff;
  color: #fff;
  padding: 1px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 6px;
}

.ps3-banner strong {
  color: #76cae9;
  font-weight: 700;
}

.wip-notice {
  background: #2d2314;
  color: #c8b9a5;
  padding: 10px 20px;
  text-align: center;
  border-bottom: 2px solid rgba(255, 200, 50, 0.15);
  font-size: 14px;
}

.wip-notice .badge {
  display: inline-block;
  background: rgba(255, 200, 50, 0.1);
  color: #ffcc44;
  padding: 2px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 200, 50, 0.1);
  margin-right: 10px;
}

.wip-notice strong {
  color: #ffcc44;
  font-weight: 600;
}

/* ---- Header / logo ---- */

.site-header {
  padding: 24px 20px 8px;
  text-align: center;
  background: #05070d;
}

.site-header img {
  display: inline-block;
  max-width: 320px;
  height: auto;
}

/* ---- Main nav ---- */

.top-nav {
  text-align: center;
  padding: 8px 10px 12px;
  background: #05070d;
}

.top-nav a {
  display: inline-block;
  color: #76cae9;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 3px;
  border: 1px solid #1f2533;
  background: #10141f;
  margin: 3px 2px;
}

.top-nav a:hover,
.top-nav a:focus {
  background: #161b28;
  color: #4a9eff;
  border-color: #2c3549;
  text-decoration: none;
}

.top-nav a.current {
  background: #1a2a3a;
  color: #ffffff;
  border-color: #4a9eff;
}

/* ---- Themes sub-nav ---- */

.sub-nav {
  text-align: center;
  padding: 0 10px 12px;
}

.sub-nav a {
  display: inline-block;
  color: #a2acc0;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  margin: 2px 1px;
  border-bottom: 2px solid #1f2533;
}

.sub-nav a:hover,
.sub-nav a:focus {
  color: #4a9eff;
  border-bottom-color: #4a9eff;
  text-decoration: none;
}

.sub-nav a.current {
  color: #ffffff;
  border-bottom-color: #9b59b6;
}

/* ---- Main content ---- */

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin: 24px 0 8px;
  text-align: center;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 24px 0 8px;
  text-align: center;
  text-transform: uppercase;
}

.subtitle {
  color: #a2acc0;
  font-size: 15px;
  text-align: center;
  margin: 0 0 28px;
}

.wrap .disclaimer {
  color: #a2acc0;
  font-size: 14px;
  font-style: italic;
  text-align: center;
  line-height: 1.55;
  margin: 0 12px 12px;
  padding: 12px 18px;
  background: #10141f;
  border-left: 3px solid #4a9eff;
  border-radius: 4px;
}

/* =========================================================
   Home page section tiles (3 across)
   ========================================================= */

.explore-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 12px 12px;
  margin: 0 0 20px;
  table-layout: fixed;
}

.explore-table td {
  width: 33.33%;
  vertical-align: top;
  padding: 0;
}

.explore-link {
  display: block;
  text-align: center;
  background: #10141f;
  border: 1px solid #1f2533;
  border-top: 4px solid #4a9eff;
  border-radius: 4px;
  padding: 34px 12px;
  color: #76cae9;
  text-decoration: none;
  font-size: 17px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.explore-link.guide {
  border-top-color: #9b59b6;
}

.explore-link:hover,
.explore-link:focus {
  background: #161b28;
  color: #4a9eff;
  text-decoration: none;
}

/* =========================================================
   How to Install guides
   ========================================================= */

.notice-box {
  background: #10141f;
  border: 2px solid #4a9eff;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.notice-box.purple {
  border-color: #9b59b6;
}

.notice-box .notice-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1f2533;
}

.notice-box.purple .notice-title {
  color: #c58fe0;
}

.notice-box .notice-step {
  color: #a2acc0;
  font-size: 15px;
  line-height: 1.5;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.notice-box .notice-step:last-child {
  border-bottom: none;
}

.notice-box .step-number {
  color: #4a9eff;
  font-weight: bold;
  margin-right: 8px;
}

.notice-box.purple .step-number {
  color: #9b59b6;
}

.notice-box strong {
  color: #ffffff;
}

.notice-box .highlight {
  color: #4a9eff;
  font-weight: bold;
}

.notice-box.purple .highlight {
  color: #c58fe0;
}

/* =========================================================
   Card grids - 3 across (themes, homebrew, ports, categories)
   ========================================================= */

.games-table,
.cat-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 12px 16px;
  margin: 0;
  table-layout: fixed;
}

.games-table td,
.cat-table td {
  width: 33.33%;
  vertical-align: top;
  padding: 0;
}

.game-card {
  background: #10141f;
  border: 1px solid #1f2533;
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
}

/* Images are pre-cropped to a consistent size per page, so they keep their
   natural height (the PS3 browser has no object-fit or aspect-ratio). */
.game-card .game-image {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid #1f2533;
  background: #03050a;
}

.game-card .game-body {
  padding: 12px 14px 14px;
}

/* min-height fits two lines, so download buttons line up across a row */
.game-card .game-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.3px;
  line-height: 1.35;
  margin: 0 0 4px;
  min-height: 38px;
}

/* pages whose cards have no author line */
.page-exclusive .game-card .game-title,
.page-ports .game-card .game-title {
  margin-bottom: 12px;
}

.game-card .game-author {
  color: #67718a;
  font-size: 14px;
  font-style: italic;
  margin: 0 0 12px;
  min-height: 20px;
}

.game-card .game-download {
  display: block;
  text-align: center;
  background: #1a2a3a;
  color: #76cae9;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid #4a9eff;
}

.game-card .game-download:hover,
.game-card .game-download:focus {
  background: #2a3a4a;
  color: #4ad9ff;
  border-color: #4ad9ff;
  text-decoration: none;
}

/* ---- Theme category cards ---- */

.cat-card {
  display: block;
  background: #10141f;
  border: 1px solid #1f2533;
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
}

.cat-card:hover,
.cat-card:focus {
  background: #161b28;
  border-color: #2c3549;
  color: #ffffff;
  text-decoration: none;
}

.cat-card .cat-image {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid #1f2533;
  background: #03050a;
}

.cat-card .cat-label {
  display: block;
  padding: 12px 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.cat-card:hover .cat-label,
.cat-card:focus .cat-label {
  color: #4a9eff;
}

/* ---- Back button ---- */

.back-button {
  text-align: center;
  padding: 20px 0;
}

.back-button a {
  display: inline-block;
  padding: 12px 24px;
  background: #222;
  color: #76cae9;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-left: 3px solid #4a9eff;
  border-radius: 4px;
}

.back-button a:hover,
.back-button a:focus {
  background: #2a2a2a;
  color: #4a9eff;
  text-decoration: none;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: #1a1a1a;
  color: #bbb;
  padding: 24px 20px 16px;
  text-align: center;
  border-top: 2px solid #4a9eff;
  margin-top: 30px;
}

.site-footer .footer-logo {
  margin-bottom: 12px;
}

.site-footer .footer-logo img {
  display: inline-block;
  height: 40px;
  max-width: 100%;
}

.site-footer .bookmark {
  margin: 0 0 16px;
}

.site-footer .bookmark img {
  display: inline-block;
  max-width: 240px;
  height: auto;
}

.site-footer .back-link {
  display: inline-block;
  color: #76cae9;
  text-decoration: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #333;
  border-radius: 4px;
  background: #222;
  margin: 6px 2px 12px;
}

.site-footer .back-link:hover,
.site-footer .back-link:focus {
  color: #4a9eff;
  border-color: #4a9eff;
  background: #2a2a2a;
  text-decoration: none;
}

.site-footer .divider {
  border-top: 1px solid #333;
  margin: 14px auto;
  max-width: 320px;
  width: 100%;
}

.site-footer .copyright {
  margin: 8px 0;
  font-size: 14px;
  color: #888;
}

.site-footer .disclaimer {
  margin: 4px 0;
  font-size: 13px;
  color: #666;
}

/* =========================================================
   Small screens (phones - the PS3 itself never gets here)
   ========================================================= */

@media (max-width: 720px) {
  .games-table td,
  .cat-table td,
  .explore-table td {
    display: block;
    width: 100%;
  }
  .games-table,
  .cat-table {
    border-spacing: 0 16px;
  }
  .explore-table {
    border-spacing: 0 10px;
  }
  .explore-link {
    padding: 18px 12px;
  }
  .wrap .disclaimer {
    margin: 0 0 12px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  h1 {
    font-size: 22px;
  }
  h2 {
    font-size: 17px;
  }
  .top-nav a {
    font-size: 11px;
    padding: 7px 10px;
  }
  .sub-nav a {
    font-size: 11px;
    padding: 5px 8px;
  }
  .explore-link {
    font-size: 15px;
  }
  .notice-box {
    padding: 16px;
  }
  .notice-box .notice-title {
    font-size: 15px;
  }
  .notice-box .notice-step {
    font-size: 13px;
  }
  .cat-card .cat-label {
    font-size: 13px;
  }
  .game-card .game-download {
    font-size: 12px;
    padding: 10px 12px;
  }
}
