#screen {
  position: absolute;
  top: 50%;
  left: 50%;

  width: var(--stage-w);
  height: var(--stage-h);
  padding: var(--screen-pad-t) var(--screen-pad-x) var(--screen-pad-b);

  background: var(--screen-bg);

  overflow: hidden;

  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 52px;

  transform-origin: 0 0;
  transform: scale(var(--stage-scale)) translate(-50%, -50%);
}

#screen > * { min-width: 0; }

.appbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;

  font-size: 50px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  line-height: normal;
  padding-left: 58px;
  padding-right: 58px;
}

.appbar__site {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  text-transform: none;
}
.appbar__dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1FB31F;
  flex: none;
}

.appfooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);

}
.appfooter__actions {
  display: flex;
  align-items: center;
  gap: 47px;
  height: 160px;
}

.logo {
  width: 319px;
  height: 200px;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);

  padding: 0 var(--s-6);

  border-radius: var(--r-md);
  font-size: 28px;
  font-weight: 700;
  white-space: nowrap;

  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.btn:active { transform: scale(.97); }

.btn--primary {
	border-radius: 30px;
	background: var(--c-accent);
	box-shadow: 0 10px 30px 0 rgba(54, 159, 255, 0.40);
	color: #fff;
	text-align: center;
	font-family: Poppins;
	font-size: 60px;
	font-style: normal;
	font-weight: 600;
	line-height: normal;
	height: 100%;
	padding: 0px 110px;
}

.btn--ghost {
	height: 100%;
	color: #6E879E;
	font-family: Poppins;
	font-size: 60px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
	border-radius: 30px;
	background: rgba(54, 159, 255, 0.1);
	display: flex;
	gap: 75px;
	padding-left: 68px;
	padding-right: 68px;
}
.btn--ghost:hover { background: #d7e9f8; }

.btn--danger { background: var(--c-electro); color: #fff; box-shadow: var(--sh-1); }
.btn--danger:hover { background: #c02222; }

.panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
.panel--fractions {
	padding: 58px 58px;
	height: 1468px;
}

.langbar {
  display: flex;
  gap: 4px;
}

.langbar__btn {
  width: 200px;
  height: 148px;
  padding: 0;
}

.figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-surface-alt);
}
.figure__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__caption {
  position: absolute;
  inset: auto 54px 64px 54px;
  padding: 62px 82px;
  color: #fff;
  font-size: 60px;
  line-height: 70px;

  border-radius: 20px;
  border: 2px solid #fff;

  background: linear-gradient(111deg,
                rgba(255, 255, 255, 0.50) -4.87%,
                rgba(255, 255, 255, 0.00) 103.95%);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
}

.figure__caption-small {
	color: #FFF;
	font-size: 45px;
	padding: 28px 68px;
	inset: auto 44px 64px 44px;
}

.figure__caption strong {
  font-weight: 600;
  font-size: 60px;
}

.tile {

  --tile-blur: 10px;
  --mark-inset: 10%;

  --check-d: 126px;

  --check-nudge: -5px;

  --icon-size: 162px;
  --recycle-radius: 32px;
  --recycle-glyph: 102px;

  position: relative;
  display: flex;
  min-height: 0;
  padding: 73px 81px;
  border-radius: 20px;
  color: #fff;
  text-align: left;
  height: 651px;

  overflow: hidden;
}

.tile__content {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
}

.tile__label {
	font-size: 70px;
	font-weight: 700;
}

.tile__icons {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.tile__icon {
  width: var(--icon-size);
  height: var(--icon-size);
  object-fit: contain;
  object-position: left bottom;
  flex: none;
}

.tile__recycle {
  display: grid;
  place-items: center;
  width: 153px;
  height: 153px;
  border-radius: var(--recycle-radius);
  background: #fff;
  flex: none;
}
.tile__recycle img {
  width: var(--recycle-glyph);
  height: var(--recycle-glyph);
}

.tile[aria-pressed="true"] .tile__content {
  filter: blur(var(--tile-blur));
}

.tile__mark {
  position: absolute;
  left: var(--mark-inset);
  right: var(--mark-inset);
  top: 50%;
  transform: translateY(-50%);

  display: none;
  place-items: center;
  min-height: 158px;
  padding: 16px 32px;

  border-radius: 20px;
  border: 1px solid #fff;
  background: rgba(255, 255, 255, .28);

  color: #fff;
  font-size: 60px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}
.tile[aria-pressed="true"] .tile__mark { display: grid; }

.tile__check {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, calc(-50% + var(--check-nudge)));

  width: var(--check-d);
  height: var(--check-d);
}

.tile--plastic {
	border-radius: 20px;
	background: linear-gradient(180deg, #FFC100 0%, #FF9E17 100%);
	box-shadow: 0 10px 30px 0 rgba(255, 139, 67, 0.40);
}
.tile--glass   {
	border-radius: 20px;
	background: linear-gradient(180deg, #47C918 0%, #1EB20A 100%);
	box-shadow: 0 10px 30px 0 rgba(18, 152, 0, 0.40);
}
.tile--paper   {
	border-radius: 20px;
	background: linear-gradient(180deg, #0BF 0%, #0070D9 100%);
	box-shadow: 0 10px 30px 0 rgba(0, 111, 215, 0.40);
}
.tile--electro {
	border-radius: 20px;
	background: linear-gradient(180deg, #E93030 0%, #C92525 100%);
	box-shadow: 0 10px 30px 0 rgba(201, 37, 37, 0.40);
}
.tile--clutter {
	border-radius: 20px;
	background: linear-gradient(180deg, #76DAF0 0%, #40C4E2 100%);
	box-shadow: 0 10px 30px 0 rgba(64, 196, 226, 0.40);
}
.tile--bio {
	border-radius: 20px;
	background: linear-gradient(180deg, #A9773F 0%, #7B4F22 100%);
	box-shadow: 0 10px 30px 0 rgba(123, 79, 34, 0.40);
}
.tile--mixed {
	border-radius: 20px;
	background: linear-gradient(180deg, #5F666C 0%, #373C40 100%);
	box-shadow: 0 10px 30px 0 rgba(55, 60, 64, 0.40);
}

.btn:disabled { opacity: .4; pointer-events: none; }

.screen__watermark {
  position: absolute;
  right: 0px;
  bottom: 0px;
  width: 953px;
  height: auto;

  z-index: -1;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.countdown {
  padding: 0 var(--s-5);
  border-radius: var(--r-md);
  background: var(--c-brand-light);
  color: var(--c-brand-dark);
  font-size: 24px;
  font-weight: 700;
  line-height: var(--tap);
}

.countdown--lg {
  padding: 0 64px;
  border-radius: 30px;
  background: var(--c-accent);
  width: 858px;
  color: #fff;
  font-size: 60px;
  line-height: 160px;
  text-align: center;
  box-shadow: 0 10px 30px 0 rgba(54, 159, 255, 0.40);
}

.is-plastic { --f-color: var(--c-plastic); --f-no: #B48500; }
.is-glass   { --f-color: var(--c-glass);   --f-no: #399819; }
.is-paper   { --f-color: var(--c-paper);   --f-no: #0093CD; }
.is-electro { --f-color: var(--c-electro); --f-no: #991A1A; }
.is-clutter { --f-color: var(--c-clutter); --f-no: #19829A; }
.is-bio     { --f-color: var(--c-bio);     --f-no: #6B4520; }
.is-mixed   { --f-color: var(--c-mixed);   --f-no: #2B2F33; }

.workspace {
  display: grid;
  grid-template-columns: 1fr 1.95fr;
  gap: 34px;
  min-height: 0;
}

.panelhead {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 28px;
  justify-content: space-between
}
.panelhead__title {
  font-size: 50px;
  font-weight: 600;
  color: var(--c-ink);
}
.panelhead__hint {
  font-size: 22px;
  color: var(--c-ink-faint);
}

.doorpanel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 850px;
  padding: 53px 54px;
}

.doorbtn {
	height: 160px;
  display: flex;
  align-items: center;
  gap: 48px;

  width: 100%;
  min-height: 148px;
  padding: 0 63px;
  margin-bottom: 55px;

  border-radius: 30px;
  background: var(--c-accent);
  box-shadow: 0 10px 30px 0 rgba(54, 159, 255, 0.40);

  color: #fff;
  font-size: 45px;
  font-weight: 700;
  text-align: left;

  transition: filter .12s ease;
}
.doorbtn:active { filter: brightness(.92); }
.doorbtn__chevron { width: 40px; height: 40px; flex: none; }

.sidefigure {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 24px;
}
.sidefigure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidefigure__caption {
  position: absolute;
  inset: auto 32px 32px 32px;
  padding: 28px 32px;

  border-radius: 16px;
  border: 1.8px solid rgba(255, 255, 255, .5);
  background: linear-gradient(111deg, rgba(255, 255, 255, .5) -5%, rgba(255, 255, 255, 0) 104%);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);

  color: #fff;
  font-size: 40px;
  font-weight: 600;
  text-align: center;
}

.exitbtn {
  min-width: 810px;
  min-height: 160px;
  font-size: 48px;
  border-radius: 30px;
  background: #E91818;
  box-shadow: 0 10px 30px 0 rgba(233, 24, 24, 0.40);
}

.devlink {
  display: inline-flex;
  align-items: center;
  padding: 0 32px;
  border-radius: 12px;
  background: var(--c-line-soft);
  color: var(--c-ink-faint);
  font-size: 26px;
  font-weight: 600;
  line-height: 64px;
  white-space: nowrap;
}
