:root {
  --paper:#f7f5f2;
  --surface:#fffdfa;
  --ink:#1a1816;
  --soft:#69615b;
  --line:#ded7d0;
  --ember:#b73420;
  --selection:#eae4dc;
  --warn:#804710;
  color-scheme:light;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;
  font-size:16px
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  line-height:1.5
}
a {
  color:inherit;
  text-underline-offset:3px
}
button,input,select {
  font:inherit
}
button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent
}
button,input,select {
  max-width:100%
}
:focus-visible {
  outline:3px solid var(--ember);
  outline-offset:4px
}
h1,h2,h3,p {
  overflow-wrap:anywhere
}
h1 {
  font-size:clamp(1.5rem, calc(1rem + 3vw), 2rem);
  font-weight:700;
  letter-spacing:-.04em;
  line-height:1.16;
  margin:0 0 12px
}
h2 {
  font-size:1.125rem;
  letter-spacing:-.015em;
  margin:0 0 14px;
  line-height:1.35
}
h3 {
  font-size:1rem;
  margin:0 0 8px
}
p {
  margin:0 0 16px
}
.muted,.metadata,.footnote {
  color:var(--soft)
}
.shell {
  display:grid;
  grid-template-columns:224px minmax(0,1fr);
  min-height:100vh
}
.sidebar {
  padding:32px 20px;
  border-right:1px solid var(--line);
  background:var(--surface);
  position:sticky;
  top:0;
  height:100dvh;
  overflow-y:auto;
  display:flex;
  flex-direction:column
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:1.25rem;
  font-weight:700;
  letter-spacing:-.025em;
  text-decoration:none;
  margin-bottom:38px;
  min-height:44px
}
.brand img {
  width:34px;
  height:34px;
  flex:none;
  display:block
}
.nav {
  display:grid;
  gap:4px
}
.nav a {
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 12px;
  border-radius:8px;
  text-decoration:none;
  color:var(--soft);
  line-height:1.35
}
.nav a[aria-current=page] {
  background:var(--selection);
  color:var(--ink);
  font-weight:600
}
.nav a:hover {
  color:var(--ink);
  background:var(--selection)
}
.sidebar-signout {
  margin-top:auto;
  padding-top:16px
}
.sidebar-signout button {
  width:100%;
  min-height:44px;
  padding:10px 12px;
  border:0;
  border-radius:8px;
  background:none;
  color:var(--soft);
  font:inherit;
  line-height:1.35;
  text-align:left;
  cursor:pointer
}
.sidebar-signout button:hover {
  color:var(--ink);
  background:var(--selection)
}
.main {
  padding:48px clamp(24px,5vw,64px);
  width:100%;
  max-width:1088px;
  min-width:0
}
.page-header {
  margin-bottom:36px
}
.lede {
  color:var(--soft);
  max-width:44rem;
  margin:0;
  line-height:1.6
}
.section {
  padding:28px 0;
  border-top:1px solid var(--line)
}
.section.first {
  border-top:0;
  padding-top:0
}
.section-heading {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:baseline;
  gap:8px 20px;
  margin-bottom:14px
}
.section-heading h2 {
  margin:0
}
.section-heading a,.text-actions a {
  font-size:.9375rem
}
.section-label {
  color:var(--soft);
  font-size:.875rem;
  margin-bottom:8px
}
.plan-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding-bottom:28px
}
.plan-summary>div {
  min-width:0
}
.plan-summary h2,.membership-summary h2 {
  font-size:1.875rem;
  font-weight:700;
  letter-spacing:-.035em;
  margin-bottom:8px
}
.plan-summary p:last-child {
  margin-bottom:0
}
.plan-summary .button {
  flex:none
}
.membership-summary {
  padding-bottom:28px
}
.membership-summary .muted {
  max-width:42rem
}
.membership-summary .button {
  margin-top:4px
}
.renewal {
  font-weight:600;
  margin:20px 0 6px
}
.pending-plan {
  margin-bottom:16px
}
.storage-total {
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:6px 12px;
  margin-bottom:12px
}
.storage-total strong {
  font-size:1.875rem;
  line-height:1.2;
  letter-spacing:-.035em;
  font-variant-numeric:tabular-nums
}
.bar {
  display:block;
  width:100%;
  height:8px;
  border:0;
  border-radius:6px;
  background:var(--line);
  appearance:none;
  overflow:hidden;
  margin:18px 0 12px
}
.bar::-webkit-progress-bar {
  background:var(--line)
}
.bar::-webkit-progress-value {
  background:var(--ember)
}
.bar::-moz-progress-bar {
  background:var(--ember)
}
.rows {
  margin:0 0 24px
}
.rows>div {
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
  border-bottom:1px solid var(--line)
}
.rows>div:last-child {
  border:0
}
.rows dt {
  min-width:0;
  overflow-wrap:anywhere
}
.rows dd {
  margin:0;
  text-align:right;
  color:var(--soft);
  font-variant-numeric:tabular-nums
}
.notice {
  border-left:3px solid var(--line);
  background:var(--surface);
  padding:16px 20px;
  margin-bottom:28px;
  border-radius:0 8px 8px 0
}
.notice strong {
  display:block;
  margin-bottom:6px
}
.notice p:last-child {
  margin-bottom:0
}
.notice.warning {
  border-color:#a66b27;
  background:#fbefde;
  color:#623c15
}
.text-actions {
  display:flex;
  gap:12px 20px;
  flex-wrap:wrap
}
.status {
  display:inline-block;
  margin:4px 0 10px;
  font-size:.9375rem;
  font-weight:600
}
.status.warning {
  color:var(--warn)
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border:1px solid transparent;
  border-radius:8px;
  padding:10px 16px;
  background:var(--ink);
  color:white;
  font-weight:600;
  font-size:.9375rem;
  line-height:1.35;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  overflow-wrap:anywhere
}
.button.secondary {
  background:var(--selection);
  color:var(--ink)
}
.button.danger {
  background:var(--ember);
  color:white
}
.button:hover {
  filter:brightness(.94)
}
.stack {
  display:grid;
  gap:16px;
  justify-items:start
}
.field {
  display:grid;
  gap:8px;
  width:100%;
  min-width:0
}
.field input,.field select {
  width:100%;
  min-height:44px;
  padding:10px 12px;
  border:1px solid #a69b91;
  border-radius:7px;
  background:var(--surface);
  color:var(--ink)
}
input[type=checkbox] {
  width:20px;
  height:20px;
  vertical-align:middle
}
.compact {
  max-width:360px
}
.library-list,.device-list {
  list-style:none;
  padding:0;
  margin:0
}
.game-row,.device-row {
  padding:24px 0;
  border-bottom:1px solid var(--line);
  min-width:0
}
.game-row:first-child,.device-row:first-child {
  padding-top:0
}
.game-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px
}
.game-identity {
  min-width:0;
  flex:1
}
.game-identity h2 {
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:1.0625rem;
  line-height:1.45;
  margin:0 0 6px;
  overflow-wrap:anywhere
}
.game-row:has(details[open]) .game-identity h2 {
  display:block;
  overflow:visible
}
.metadata {
  font-size:.875rem;
  margin:0;
  overflow-wrap:anywhere
}
.metadata span+span:before {
  content:"·";
  padding:0 8px
}
.download {
  flex:none
}
.game-options {
  margin-top:10px
}
.game-options summary {
  font-size:.9375rem;
  color:var(--soft)
}
summary {
  cursor:pointer;
  min-height:44px;
  padding:10px 0;
  overflow-wrap:anywhere
}
summary::marker {
  color:var(--soft)
}
.game-actions {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:28px;
  padding:16px 0 4px
}
.game-actions p {
  font-size:.9375rem
}
.game-actions section {
  min-width:0
}
.device-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px
}
.device-row>div {
  min-width:0
}
.device-row h2 {
  margin:0 0 4px;
  font-size:1.0625rem
}
.device-row form {
  flex:none
}
.footnote {
  font-size:.875rem;
  margin-top:20px;
  max-width:42rem
}
.empty-state {
  padding:44px 0
}
.empty-state h2 {
  font-size:1.375rem
}
.pagination {
  margin-top:24px
}
.danger-zone {
  padding-bottom:0
}
.danger-zone>details>summary {
  color:var(--ember);
  font-weight:600
}
.deletion-content {
  padding:12px 0 24px;
  max-width:40rem
}
code {
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.875rem;
  overflow-wrap:anywhere
}
.login {
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:32px 24px
}
.login-content {
  width:min(420px,100%)
}
.login .brand {
  margin-bottom:40px
}
.login h1 {
  font-size:2.25rem
}
.login .lede {
  margin-bottom:28px
}
.apple-signin {
  width:100%
}
.development {
  margin-top:32px
}
.development form {
  margin-top:12px
}
.visually-hidden,.skip-link:not(:focus) {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link:focus {
  position:fixed;
  top:12px;
  left:12px;
  z-index:2;
  background:var(--surface);
  padding:12px
}
@media(max-width:760px) {
  .shell {
    display:block
  }
  .sidebar {
    position:static;
    height:auto;
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:16px
  }
  .brand {
    margin-bottom:14px
  }
  .nav {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:4px
  }
  .nav a {
    font-size:.875rem;
    padding:10px 8px
  }
  .sidebar-signout {
    padding-top:4px
  }
  .sidebar-signout button {
    font-size:.875rem;
    padding:10px 8px
  }
  .main {
    padding:32px 24px
  }
  .page-header {
    margin-bottom:28px
  }
  .plan-summary {
    align-items:flex-start;
    flex-direction:column;
    gap:16px
  }
  .game-actions {
    grid-template-columns:1fr
  }
  .game-actions section+section {
    border-top:1px solid var(--line);
    padding-top:24px
  }
  .device-row {
    flex-wrap:wrap
  }
  .game-heading {
    flex-wrap:wrap
  }
  .game-identity {
    flex-basis:calc(100% - 130px)
  }
  .game-heading .download {
    align-self:flex-start
  }
  .rows>div {
    flex-wrap:wrap;
    gap:6px 16px
  }
  .rows dd {
    margin-left:auto
  }
  .section-heading {
    align-items:flex-start
  }
  .section {
    padding:24px 0
  }
}
@media(max-width:380px) {
  .main {
    padding:28px 18px
  }
  .nav {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .game-identity {
    flex-basis:100%
  }
  .game-heading {
    gap:12px
  }
  .game-heading .download {
    margin-top:0
  }
}
@media(prefers-contrast:more) {
  :root {
    --soft:#3b3530;
    --line:#82776d;
    --selection:#e2d9cf
  }
  .button.secondary {
    border-color:#82776d
  }
  .notice.warning {
    border-color:#623c15
  }
  .nav a[aria-current=page] {
    outline:1px solid #82776d
  }
}
@media(forced-colors:active) {
  .button,.notice,.nav a[aria-current=page] {
    border:1px solid ButtonText
  }
  .bar {
    appearance:auto
  }
  .brand img {
    forced-color-adjust:none
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto!important;
    animation:none!important;
    transition:none!important
  }
}

.rows dt a {
  display:inline-flex;
  min-height:44px;
  align-items:center;
}
.section > p {
  max-width:44rem;
}
