:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background: #0b0c0e;
  color: #f5f5f7;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-block-size: 100vh;
  min-block-size: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: radial-gradient(ellipse at 50% -20%, #30323780, transparent 55%),
              radial-gradient(ellipse at 85% 90%, #25242938, transparent 45%), #0b0c0e;
}
a { color: inherit; }
main { display: grid; place-items: center; padding: 30px 24px 44px; min-inline-size: 0; }
.access-card {
  inline-size: 100%;
  max-inline-size: 480px;
  min-inline-size: 0;
  position: relative;
  padding: 40px 38px 30px;
  text-align: center;
  border: 1px solid #ffffff16;
  border-radius: 34px;
  background: linear-gradient(150deg, #ffffff09, #ffffff00 45%), #16171b;
  box-shadow: 0 24px 90px #0005, 0 2px 8px #0003, inset 0 1px 0 #ffffff0c;
  animation: arrive .65s cubic-bezier(.16, 1, .3, 1) both;
}
@supports ((backdrop-filter: blur(24px)) or (-webkit-backdrop-filter: blur(24px))) {
  .access-card {
    background: linear-gradient(150deg, #ffffff09, #ffffff00 45%), #18191dc9;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }
}
.icon { inline-size: 20px; block-size: 20px; flex: 0 0 auto; }
.app-icon {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: 76px;
  block-size: 76px;
  margin: 0 auto 25px;
  border-radius: 23px;
  border: 1px solid #ffffff24;
  background: linear-gradient(145deg, #44464c, #222328 55%, #15161a);
  box-shadow: inset 0 1px 0 #ffffff20, 0 10px 22px #0004;
}
.app-icon > .icon { inline-size: 44px; block-size: 44px; color: #e9eaed; stroke-width: 1.35; }
.app-badge {
  display: grid;
  place-items: center;
  position: absolute;
  inset-inline-end: -5px;
  inset-block-end: -4px;
  inline-size: 26px;
  block-size: 26px;
  border: 4px solid #1b1c20;
  border-radius: 50%;
  background: #b4dfc4;
  color: #173627;
}
.app-badge .icon { inline-size: 16px; block-size: 16px; stroke-width: 2.5; }
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid #ffffff0d;
  border-radius: 30px;
  background: #ffffff05;
  color: #bbbcc2;
  font-size: 0.75rem;
  line-height: 1.3;
  font-weight: 500;
}
.status-dot { inline-size: 5px; block-size: 5px; border-radius: 50%; background: #b4dfc4; }
.ready .status-pill { color: #c3dfce; }
h1 { font-size: clamp(2.125rem, 1.25rem + 2vw, 2.75rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.08; margin: 22px 0 16px; text-wrap: balance; }
p { font-size: 0.9375rem; line-height: 1.6; color: #aeb0b8; }
.intro { margin: 0 auto 29px; max-inline-size: 340px; line-height: 1.65; letter-spacing: -.015em; }
.key-panel { border: 1px solid #ffffff12; border-radius: 18px; background: #08090c52; padding: 15px 17px 12px; text-align: start; box-shadow: inset 0 1px 3px #0002; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
label { font-size: 0.75rem; font-weight: 500; color: #b6b8c1; }
.duration { font-size: 0.625rem; font-weight: 600; letter-spacing: .02em; color: #bfc2ca; background: #ffffff08; border: 1px solid #ffffff0c; padding: 3px 6px; border-radius: 6px; }
textarea {
  display: block;
  inline-size: 100%;
  min-block-size: 64px;
  resize: none;
  margin: 9px 0 0;
  border: 0;
  border-radius: 5px;
  padding: 2px 0;
  background: transparent;
  color: #e5e6ea;
  font: .875rem/1.75 ui-monospace, "SFMono-Regular", Consolas, monospace;
  overflow-wrap: anywhere;
  word-break: break-all;
  -webkit-user-select: text;
  user-select: text;
}
.action, #copy-key {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  inline-size: 100%;
  min-block-size: 52px;
  margin: 16px 0 0;
  border: 1px solid #ffffff70;
  border-radius: 16px;
  background: linear-gradient(#f8f8fa, #dcdde2);
  color: #202126;
  box-shadow: 0 3px 8px #0003, inset 0 1px 0 #fff;
  padding: 14px 18px;
  font: 600 .9375rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.015em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.action .icon { inline-size: 18px; block-size: 18px; }
.action:active, #copy-key:active { transform: scale(.98); }
@media (hover: hover) {
  .action:hover, #copy-key:hover { background: linear-gradient(#fff, #ebecf0); box-shadow: 0 5px 16px #0004, inset 0 1px 0 #fff; transform: translateY(-1px); }
}
#copy-key .check-icon { display: none; }
#copy-key.copied .copy-icon { display: none; }
#copy-key.copied .check-icon { display: block; }
#copy-status { min-block-size: 20px; font-size: 0.75rem; margin: 10px 0 18px; color: #b4dfc4; }
.expiry-row { display: flex; align-items: flex-start; justify-content: center; gap: 7px; padding-block-start: 20px; border-block-start: 1px solid #ffffff0c; color: #b2b4bc; font-size: 0.75rem; line-height: 1.6; }
.expiry-row .icon { inline-size: 15px; block-size: 15px; margin-block-start: 2px; color: #8f929d; }
time { white-space: normal; }
.card-note { font-size: 0.75rem; color: #9c9fa9; margin: 17px 0 0; }
.access-card.start { max-inline-size: 440px; padding: 36px 32px 28px; border-radius: 30px; }
.start .app-icon { margin-block-end: 24px; }
.start h1 { margin-block: 20px 16px; }
.start .intro { margin-block-end: 28px; }
.start .action { margin-block-start: 0; }
.start .card-note { margin-block-start: 18px; }
.site-footer { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 24px max(28px, env(safe-area-inset-bottom)); color: #8f929c; font-size: 0.6875rem; }
.site-footer > span:first-child { letter-spacing: .18em; font-size: 0.625rem; font-weight: 600; }
:where(a, button, textarea):focus-visible { outline: 3px solid #b8d6f5; outline-offset: 5px; }
textarea:focus-visible { outline-offset: 2px; }
::selection { background: #cad3e3; color: #101216; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 541px) and (max-height: 850px) {
  main { padding-block: 16px 24px; }
  .access-card { padding: 28px 32px 24px; }
  .access-card.start { padding: 32px 32px 26px; }
  .app-icon { inline-size: 60px; block-size: 60px; border-radius: 19px; margin-block-end: 16px; }
  .app-icon > .icon { inline-size: 36px; block-size: 36px; }
  h1 { font-size: 2.375rem; margin-block: 18px 14px; }
  .intro { font-size: 0.875rem; line-height: 1.55; margin-block-end: 22px; }
  .key-panel { padding-block: 13px 10px; }
  textarea { min-block-size: 56px; }
  #copy-status { margin-block: 8px 12px; }
  .expiry-row { padding-block-start: 16px; }
  .site-footer { padding-block: 12px 16px; }
}
@media (max-width: 540px) {
  main { padding: 20px 16px 25px; }
  .access-card { border-radius: 28px; padding: 31px 24px 25px; }
  .access-card.start { padding: 32px 24px 26px; border-radius: 28px; }
  .app-icon { inline-size: 68px; block-size: 68px; border-radius: 21px; margin-block-end: 22px; }
  .app-icon > .icon { inline-size: 39px; block-size: 39px; }
  h1 { font-size: 2.25rem; }
  .intro { font-size: 0.875rem; }
  textarea { font-size: 1rem; min-block-size: 77px; line-height: 1.6; }
  .key-panel { padding-inline: 14px; }
  .site-footer { gap: 9px; font-size: 0.625rem; padding-block-end: max(22px, env(safe-area-inset-bottom)); }
}
@media (max-width: 350px) {
  .access-card { padding-inline: 19px; }
  .access-card.start { padding-inline: 20px; }
  textarea { min-block-size: 94px; }
  h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .access-card { animation: none; }
  .action, #copy-key { transition: none; }
  .action:hover, #copy-key:hover, .action:active, #copy-key:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .access-card { background: #191a1e; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .access-card, .app-icon, .key-panel, .status-pill, .action, #copy-key { border: 1px solid CanvasText; }
  .app-badge { background: Canvas; color: CanvasText; border-color: CanvasText; }
}
